{"info":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","description":"<html><head></head><body><p>This is a API where you can save or create a recipe and search for the recipe in it.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"19247831","collectionId":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","publishedId":"2s8YeoREVC","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-11-11T08:33:43.000Z"},"item":[{"name":"Users","item":[{"name":"Register","id":"db3c3777-e45f-4d25-9ad6-69476d3dcde5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" :\"User 4\",\r\n    \"email\":\"User4@gmail.com\",\r\n    \"password\":\"user222\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/users/register","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"protocol":"http","port":"1323","path":["api","v1","users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"db3c3777-e45f-4d25-9ad6-69476d3dcde5"},{"name":"Login","id":"3638655a-b651-4e00-85c7-5e20e5482023","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n      \"email\":\"User4@gmail.com\",\r\n    \"password\":\"user222\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/users/login","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","users","login"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[],"_postman_id":"3638655a-b651-4e00-85c7-5e20e5482023"},{"name":"Logout","id":"c08c9d47-36f5-467c-afef-c86a2fd8eca3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:1323/api/v1/users/logout","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","users","logout"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[],"_postman_id":"c08c9d47-36f5-467c-afef-c86a2fd8eca3"},{"name":"Update","id":"b1535735-29eb-4d76-b874-df3cf7fc7117","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" :\"User 2 admin\",\r\n    \"email\":\"User2admin@gmail.com\",\r\n    \"password\":\"user2admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/users/update","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","users","update"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1535735-29eb-4d76-b874-df3cf7fc7117"}],"id":"1e298733-e1f1-48ff-aeb2-2c963c702bf2","description":"<p>This is the endpoint for user register, login and update</p>\n","_postman_id":"1e298733-e1f1-48ff-aeb2-2c963c702bf2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}}},{"name":"Recipes","item":[{"name":"Get all","id":"8e4c6cb7-334a-40ba-97c4-7c86b6300725","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:1323/api/v1/recipes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","recipes"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e4c6cb7-334a-40ba-97c4-7c86b6300725"},{"name":"Create","id":"8a6450ae-c552-4cb1-93fb-e56edd7e267d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Opor Ayam Kuning Spesial\",\r\n    \"description\": \"Resep Opor Ayam Kuning Spesial merupakan salah satu menu yang biasanya hadir saat lebaran. Dinikmati bersama lontong atau ketupat sensasi makan opor menjadi lebih nikmat.\",\r\n    \"ingredients\": \"600 ml air, 1/2 kg ayam tanpa kulit, 2 bungkus Kobe Bumbu Kalasan,1 ruas jari lengkuas, 2 batang serai, 1/2 sendok teh kunyit halus, 3 lembar daun salam, 200 ml santan,garam secukupnya, 3 butir telur rebus, bawang goreng secukupnya\",\r\n    \"instructions\": \"1. Didihkan air. Rebus ayam dengan campuran Kobe Bumbu Kalasan, lengkuas, serai dan kunyit halus. Tambahkan daun salam dan masak hingga matang. 2. Masukkan santan dan garam. Masak hingga matang. Masukkan telur rebus. Angkat dan sisihkan. 3. Sajikan dengan taburan bawang goreng di atasnya.\",\r\n    \"time\": \"1 Jam\",\r\n    \"difficult\":\"cukup sulit\",\r\n    \"serving\": \"3 porsi\",\r\n    \"category_id\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/recipes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","recipes"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a6450ae-c552-4cb1-93fb-e56edd7e267d"},{"name":"update","id":"8c49e999-d786-4225-bf57-f5cb27d1f350","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Opor Ayam Kuning Spesial updated\",\r\n    \"description\": \"Resep Opor Ayam Kuning Spesial merupakan salah satu menu yang biasanya hadir saat lebaran. Dinikmati bersama lontong atau ketupat sensasi makan opor menjadi lebih nikmat.\",\r\n    \"ingredients\": \"600 ml air, 1/2 kg ayam tanpa kulit, 2 bungkus Kobe Bumbu Kalasan,1 ruas jari lengkuas, 2 batang serai, 1/2 sendok teh kunyit halus, 3 lembar daun salam, 200 ml santan,garam secukupnya, 3 butir telur rebus, bawang goreng secukupnya. updated\",\r\n    \"instructions\": \"1. Didihkan air. Rebus ayam dengan campuran Kobe Bumbu Kalasan, lengkuas, serai dan kunyit halus. Tambahkan daun salam dan masak hingga matang. 2. Masukkan santan dan garam. Masak hingga matang. Masukkan telur rebus. Angkat dan sisihkan. 3. Sajikan dengan taburan bawang goreng di atasnya.\",\r\n    \"time\": \"1 Jam\",\r\n    \"difficult\":\"cukup sulit\",\r\n    \"serving\": \"5 porsi\",\r\n    \"category_id\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/recipes/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","recipes",":id"],"host":["http://localhost:1323"],"query":[],"variable":[{"type":"any","value":"2","key":"id"}]}},"response":[],"_postman_id":"8c49e999-d786-4225-bf57-f5cb27d1f350"},{"name":"delete","id":"bbd2d8f9-478f-430b-ac1a-502d48fbb1fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:1323/api/v1/recipes/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","recipes",":id"],"host":["http://localhost:1323"],"query":[],"variable":[{"type":"any","value":"3","key":"id"}]}},"response":[],"_postman_id":"bbd2d8f9-478f-430b-ac1a-502d48fbb1fe"},{"name":"Get By ID","id":"c8f155d9-69b9-4fd6-9fdd-f58897bf5737","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:1323/api/v1/recipes/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","recipes",":id"],"host":["http://localhost:1323"],"query":[],"variable":[{"type":"any","value":"2","key":"id"}]}},"response":[],"_postman_id":"c8f155d9-69b9-4fd6-9fdd-f58897bf5737"},{"name":"Get By Category ID","id":"37136ede-ca62-4d29-ad30-1752b215f869","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:1323/api/v1/recipes/category/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","recipes","category",":id"],"host":["http://localhost:1323"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"37136ede-ca62-4d29-ad30-1752b215f869"},{"name":"Seacrh","id":"1c9fdfc0-4215-48af-95b5-12c7ecf50a53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:1323/api/v1/recipes?name=Opor","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","recipes"],"host":["http://localhost:1323"],"query":[{"key":"name","value":"Opor"}],"variable":[]}},"response":[],"_postman_id":"1c9fdfc0-4215-48af-95b5-12c7ecf50a53"}],"id":"cab88c84-2695-4779-82a1-7134b46325ab","description":"<p>This is the endpoint to create or save food recipes, modify recipes, delete recipes, get all, get by id and get by category id</p>\n","_postman_id":"cab88c84-2695-4779-82a1-7134b46325ab","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}}},{"name":"Categories","item":[{"name":"get all","id":"a5b97741-e102-4a84-88c5-210cf9d8dccb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:1323/api/v1/categories","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","categories"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"e6f52905-8e35-4a09-94b7-49f630996495","name":"get all","originalRequest":{"method":"GET","header":[],"url":"http://localhost:1323/api/v1/categories"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"a5b97741-e102-4a84-88c5-210cf9d8dccb"},{"name":"create","id":"60dcd14f-de97-4058-bdd1-323f75c82a45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Korean Food\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/categories","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","categories"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[],"_postman_id":"60dcd14f-de97-4058-bdd1-323f75c82a45"},{"name":"update","id":"5d3347e0-7b2b-48a9-9d90-4bdf9a58a028","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Korean Food update\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/categories/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","categories",":id"],"host":["http://localhost:1323"],"query":[],"variable":[{"type":"any","value":"4","key":"id"}]}},"response":[],"_postman_id":"5d3347e0-7b2b-48a9-9d90-4bdf9a58a028"},{"name":"delete","id":"6e05b499-3f32-451b-a37f-e359cfa9b1b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:1323/api/v1/categories/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","categories",":id"],"host":["http://localhost:1323"],"query":[],"variable":[{"type":"any","value":"5","key":"id"}]}},"response":[],"_postman_id":"6e05b499-3f32-451b-a37f-e359cfa9b1b5"},{"name":"get by id","id":"b20547ba-71a8-4e1c-88db-b6d1f1d5c1ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:1323/api/v1/categories/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}},"urlObject":{"path":["api","v1","categories",":id"],"host":["http://localhost:1323"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"b20547ba-71a8-4e1c-88db-b6d1f1d5c1ab"}],"id":"ee3e572f-cf5c-4f13-8082-d638bc32e643","description":"<p>This is the endpoint to create categories for recipe , you can modify categories, delete categories, get all, and get by id.</p>\n","_postman_id":"ee3e572f-cf5c-4f13-8082-d638bc32e643","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","id":"5d901ec5-2f34-4e06-83e7-1ad6a18982c0","name":"Echo-Recipe Api","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"b403f54c-9d2a-4d4d-a1b1-e3ef25dbf73c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3f99f42b-3440-4918-a697-81cfce7e5c01","type":"text/javascript","exec":[""]}}],"variable":[{"key":"BASE_URL","value":"https://go-recipe-app.herokuapp.com","type":"string","disabled":true},{"key":"BASE_URL","value":"http://localhost:1323","type":"string"}]}