{"info":{"_postman_id":"3d7e13bd-d81c-4466-aacd-875a6ea7f61e","name":"Food Recipes API","description":"<html><head></head><body><p>Dokumentasi ini menjelaskan tentang cara mengakses RestAPI Backend aplikasi Food Recipes, seperti melihat, menambah, mengubah, maupun menghapus data Users dan Recipes</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14500995","collectionId":"3d7e13bd-d81c-4466-aacd-875a6ea7f61e","publishedId":"2s93eYVXmQ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-05-08T11:34:23.000Z"},"item":[{"name":"Users","item":[{"name":"Get All Users","id":"185f9640-dbe7-456e-a752-6fb712a982b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rich-blue-shrimp-wig.cyclic.app/user","description":"<p>Digunakan untuk mengambil semua data users</p>\n","urlObject":{"protocol":"https","path":["user"],"host":["rich-blue-shrimp-wig","cyclic","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"185f9640-dbe7-456e-a752-6fb712a982b0"},{"name":"Get Users By ID","id":"a1b92534-e79b-4b1e-b2cf-026b201c0e23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/user/25","description":"<p>Digunakan untuk mengambil data berdasarkan parameter id yang dimasukan</p>\n","urlObject":{"protocol":"http","port":"3000","path":["user","25"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a1b92534-e79b-4b1e-b2cf-026b201c0e23"},{"name":"Get Users With Pagination","id":"59ae1a11-ae4b-4fc5-bc82-023fe2488c37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/user?limit=5&page=3","description":"<p>Digunakan untuk mengambil semua data users menggunakan pagination</p>\n","urlObject":{"protocol":"http","port":"3000","path":["user"],"host":["localhost"],"query":[{"key":"limit","value":"5"},{"key":"page","value":"3"}],"variable":[]}},"response":[],"_postman_id":"59ae1a11-ae4b-4fc5-bc82-023fe2488c37"},{"name":"Post User","id":"0feb3f7a-b657-4ebf-9cf4-b5002a1565f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"rudi@gmail.com\",\r\n    \"fullname\": \"Rudi Tabuti\",\r\n    \"phoneNumber\": \"082268407871\",\r\n    \"password\": \"12345678\",\r\n    \"profilePicture\": \"http://example.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/user","description":"<p>Digunakan untuk menambahkan data baru ke data users</p>\n","urlObject":{"protocol":"http","port":"3000","path":["user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0feb3f7a-b657-4ebf-9cf4-b5002a1565f2"},{"name":"Patch Users","id":"a84f72fb-8f32-4b66-83b1-678e56986422","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"test3@gmail.com\",\r\n    \"fullname\": \"Rudi Aja\",\r\n    \"phoneNumber\": \"082268407871\",\r\n    \"password\": \"12313180931231\",\r\n    \"profilePicture\": \"http://example.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/user/","description":"<p>Digunakan untuk mengubah data user yang dipilih berdasarkan parameter id yang dimasukan</p>\n","urlObject":{"protocol":"http","port":"3000","path":["user",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a84f72fb-8f32-4b66-83b1-678e56986422"},{"name":"Delete User","id":"55c85145-d9b2-48a9-ba08-da750b1e548a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/user/","description":"<p>Digunakan untuk menghapus data user yang dipilih berdasarkan parameter id yang dimasukan</p>\n","urlObject":{"protocol":"http","port":"3000","path":["user",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"55c85145-d9b2-48a9-ba08-da750b1e548a"}],"id":"f759f0fe-dccf-4183-b6f2-943918afef10","description":"<p>Users merupakan collection yang berisi berbagai metode pengaksesan endpoint /users dari RestAPI Food Recipes</p>\n","_postman_id":"f759f0fe-dccf-4183-b6f2-943918afef10"},{"name":"Recipe","item":[{"name":"Get All Recipes","id":"c0394eea-3d6f-4ac2-8aad-32ddfa1385ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rich-blue-shrimp-wig.cyclic.app/recipe/user/1?sort=asc","description":"<p>StartFragment</p>\n<p>Digunakan untuk mengambil semua data recipes</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"https","path":["recipe","user","1"],"host":["rich-blue-shrimp-wig","cyclic","app"],"query":[{"disabled":true,"key":"page","value":"1"},{"key":"sort","value":"asc"}],"variable":[]}},"response":[],"_postman_id":"c0394eea-3d6f-4ac2-8aad-32ddfa1385ef"},{"name":"Get All Recipes With Pagination","id":"c87d82a5-af7d-4671-a8a4-70603c81b038","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://rich-blue-shrimp-wig.cyclic.app/recipe?limit=9&page=1","description":"<p>Digunakan untuk mengambil semua data recipes menggunakan pagination</p>\n","urlObject":{"protocol":"https","path":["recipe"],"host":["rich-blue-shrimp-wig","cyclic","app"],"query":[{"key":"limit","value":"9"},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"c87d82a5-af7d-4671-a8a4-70603c81b038"},{"name":"Get Recipe By Slug","id":"b042067b-1596-4d21-8fb6-13902f31ee77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rich-blue-shrimp-wig.cyclic.app/recipe/saved","description":"<p>Digunakan untuk mengambil data berdasarkan parameter id yang dimasukan</p>\n","urlObject":{"path":["saved"],"host":["https://rich-blue-shrimp-wig.cyclic.app/recipe"],"query":[],"variable":[]}},"response":[],"_postman_id":"b042067b-1596-4d21-8fb6-13902f31ee77"},{"name":"Post Recipe","id":"dd77bbca-9ebf-4945-a0c4-b7c73f545ce8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"recipePicture","type":"file","src":"/X:/Pijar Camp/Code/Front End Code/food-recipe-fe/public/images/banana-pancake.png"},{"key":"title","value":"Banana pancake","type":"text"},{"key":"ingredients","value":"2312342","type":"text"},{"key":"videoLink","value":"123","type":"text"},{"key":"userId","value":"1","type":"text"}]},"url":"https://rich-blue-shrimp-wig.cyclic.app/recipe","description":"<p>Digunakan untuk menambahkan data baru ke data recipes</p>\n","urlObject":{"protocol":"https","path":["recipe"],"host":["rich-blue-shrimp-wig","cyclic","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd77bbca-9ebf-4945-a0c4-b7c73f545ce8"},{"name":"Update Recipe","id":"181f0748-23ba-464b-a2b4-ee8ef9775f6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"recipePicture\": \"https://www.google.com\",\r\n    \"title\": \"Bayam BAngkunang\",\r\n    \"ingredients\": \"Bayam. Bombai. Santan\",\r\n    \"videoLink\": \"https://www.youtube.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/recipe/1","description":"<p>Digunakan untuk menghapus data recipes yang dipilih berdasarkan parameter id yang dimasukan</p>\n","urlObject":{"protocol":"http","port":"3000","path":["recipe","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"181f0748-23ba-464b-a2b4-ee8ef9775f6f"},{"name":"Delete Recipe","id":"c830be98-672d-4415-8afb-985158642190","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/recipe/5","description":"<p>Digunakan untuk menghapus data recipes yang dipilih berdasarkan parameter id yang dimasukan</p>\n","urlObject":{"protocol":"http","port":"3000","path":["recipe","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c830be98-672d-4415-8afb-985158642190"},{"name":"Update Photo Recipe","id":"52784561-5ef5-4b98-b73e-c4cc7314e7eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"recipePicture","type":"file","src":"/E:/Software Enginering/Learning/Pijar Camp/Code/Front End Code/food-recipe-fe/public/images/banana-pancake.png"}]},"url":"https://rich-blue-shrimp-wig.cyclic.app/recipe/photo/7","urlObject":{"path":["photo","7"],"host":["https://rich-blue-shrimp-wig.cyclic.app/recipe"],"query":[],"variable":[]}},"response":[],"_postman_id":"52784561-5ef5-4b98-b73e-c4cc7314e7eb"},{"name":"Post Comment","id":"8d4b2533-95a8-42b7-8b1d-1ac1d3b41dcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"userId","value":"7","type":"text"},{"key":"recipeId","value":"7","type":"text"},{"key":"comment","value":"Resepnya mudah betul","type":"text"}]},"url":"http://localhost:1234/recipe/comment","urlObject":{"protocol":"http","port":"1234","path":["recipe","comment"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8d4b2533-95a8-42b7-8b1d-1ac1d3b41dcd"},{"name":"Like Recipe","id":"5071649e-ad02-4a2d-a2c9-f62aada95fa3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"userId","value":"7","type":"text"},{"key":"recipeId","value":"7","type":"text"},{"key":"comment","value":"Resepnya mudah betul","type":"text"}]},"url":"http://localhost:1234/recipe/comment","urlObject":{"protocol":"http","port":"1234","path":["recipe","comment"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5071649e-ad02-4a2d-a2c9-f62aada95fa3"},{"name":"Unlike Recipe","id":"009e7717-da28-4240-a5cb-465390588fb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"userId","value":"7","type":"text"},{"key":"recipeId","value":"7","type":"text"},{"key":"comment","value":"Resepnya mudah betul","type":"text"}]},"url":"http://localhost:1234/recipe/comment","urlObject":{"protocol":"http","port":"1234","path":["recipe","comment"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"009e7717-da28-4240-a5cb-465390588fb9"},{"name":"Save Recipe","id":"63a69abe-d3b5-4dbd-aa24-48c0cf9a226c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"userId","value":"1","type":"text"},{"key":"recipeId","value":"7","type":"text"}]},"url":"http://localhost:1234/recipe/save","urlObject":{"protocol":"http","port":"1234","path":["recipe","save"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"63a69abe-d3b5-4dbd-aa24-48c0cf9a226c"},{"name":"Unsave Recipe","id":"4ed45dc1-389f-4801-8e58-49eedfd64bfd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"userId","value":"1","type":"text"},{"key":"recipeId","value":"7","type":"text"}]},"url":"http://localhost:1234/recipe/save","urlObject":{"protocol":"http","port":"1234","path":["recipe","save"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ed45dc1-389f-4801-8e58-49eedfd64bfd"},{"name":"Get Saved Recipe","id":"e5c19dc2-294a-47af-804f-fd28431ce330","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:1234/recipe/saved","urlObject":{"protocol":"http","port":"1234","path":["recipe","saved"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e5c19dc2-294a-47af-804f-fd28431ce330"},{"name":"Get Liked Recipe Copy","id":"99d25141-d94c-49b7-9479-9bc786c0d225","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:1234/recipe/saved","urlObject":{"protocol":"http","port":"1234","path":["recipe","saved"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"99d25141-d94c-49b7-9479-9bc786c0d225"}],"id":"97505fc8-1841-4e16-9bcb-cc801c6d2e59","description":"<p>Recipes merupakan collection yang berisi berbagai metode pengaksesan endpoint /recipe dari RestAPI Food Recipes</p>\n","_postman_id":"97505fc8-1841-4e16-9bcb-cc801c6d2e59"},{"name":"Auth","item":[{"name":"Login","id":"610fb5cc-9d45-4dce-a961-99878a2eb173","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"fadlikurniadi@gmail.com\",\r\n    \"password\": \"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://rich-blue-shrimp-wig.cyclic.app/auth/login","urlObject":{"protocol":"https","path":["auth","login"],"host":["rich-blue-shrimp-wig","cyclic","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"610fb5cc-9d45-4dce-a961-99878a2eb173"},{"name":"Register","id":"eef5791b-b4bf-45a2-98ca-1575db1121b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"inofrianda@gmail.com\",\r\n    \"fullname\": \"Irham Nofrianda\",\r\n    \"phoneNumber\": \"082212345678\",\r\n    \"password\": \"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://rich-blue-shrimp-wig.cyclic.app/auth/register","urlObject":{"protocol":"https","path":["auth","register"],"host":["rich-blue-shrimp-wig","cyclic","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"eef5791b-b4bf-45a2-98ca-1575db1121b2"}],"id":"e433d866-2560-4d2a-b727-366f68d2be2b","_postman_id":"e433d866-2560-4d2a-b727-366f68d2be2b","description":""},{"name":"Profile","item":[{"name":"Photo","item":[{"name":"Update Photo","id":"c2d41864-7cad-4bfa-88d3-a6353d472c47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"photo","type":"file","src":"/X:/Pijar Camp/Demo/346641507_631980425094651_1281335014626688874_n.jpg"}]},"url":"http://localhost:3000/profile/photo","urlObject":{"protocol":"http","port":"3000","path":["profile","photo"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c2d41864-7cad-4bfa-88d3-a6353d472c47"},{"name":"Delete Photo","id":"ecf2a7b2-d706-4442-8b20-d1450fcf989e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:3000/profile/photo","urlObject":{"protocol":"http","port":"3000","path":["profile","photo"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ecf2a7b2-d706-4442-8b20-d1450fcf989e"}],"id":"3aa9c04c-c168-45a1-a300-47f01646e197","_postman_id":"3aa9c04c-c168-45a1-a300-47f01646e197","description":""},{"name":"My Profile","id":"240e3751-8a03-48f3-a8af-8a9b02bccbd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rich-blue-shrimp-wig.cyclic.app/profile","urlObject":{"protocol":"https","path":["profile"],"host":["rich-blue-shrimp-wig","cyclic","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"240e3751-8a03-48f3-a8af-8a9b02bccbd6"},{"name":"Update Profile","id":"355c51f0-2c03-4c63-8b42-740bbd30bd18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"bujanggermo@gmail.com\",\r\n    \"fullname\": \"Bujang Germo aJA\",\r\n    \"phoneNumber\": \"082212345678\",\r\n    \"password\": \"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/profile","urlObject":{"protocol":"http","port":"3000","path":["profile"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"355c51f0-2c03-4c63-8b42-740bbd30bd18"}],"id":"ea87ad42-a551-4fd3-a867-e70b1f6ec6c6","_postman_id":"ea87ad42-a551-4fd3-a867-e70b1f6ec6c6","description":""}],"event":[{"listen":"prerequest","script":{"id":"8e8b19bd-d1be-4d4c-9f75-c88b9d4c0fdb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0953bf89-aa97-402a-a1e3-5fe7b3118e14","type":"text/javascript","exec":[""]}}],"variable":[{"key":"base_url","value":"https://rich-blue-shrimp-wig.cyclic.app/","type":"string"}]}