{"info":{"_postman_id":"5efc4061-da56-4562-a4a7-9037a9447ffd","name":"Munch","description":"<html><head></head><body><h2 id=\"munch-api-requests\">Munch API Requests</h2>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14742524","collectionId":"5efc4061-da56-4562-a4a7-9037a9447ffd","publishedId":"Tz5qbxeC","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-03-15T09:07:49.000Z"},"item":[{"name":"Users","item":[{"name":"Get All Users","id":"bc7bfe99-74f0-4345-8dc5-db1b61e53561","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/users/all","urlObject":{"protocol":"http","port":"8000","path":["api","users","all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"bc7bfe99-74f0-4345-8dc5-db1b61e53561"},{"name":"Register a New User","id":"ad1c8caa-fec0-43c0-b03f-dbfa046821ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userName\": \"userName\",\n    \"email\": \"email@munch.com\",\n    \"password\": \"password\",\n    \"firstName\": \"Munch\",\n    \"lastName\": \"User\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/users/register","description":"<p>/api/users/register</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","users","register"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad1c8caa-fec0-43c0-b03f-dbfa046821ba"},{"name":"User Login","id":"79803095-57c3-46b7-87f5-71b74428b22c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"email@email.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/users/login","urlObject":{"protocol":"http","port":"8000","path":["api","users","login"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"79803095-57c3-46b7-87f5-71b74428b22c"},{"name":"User Adds a Favorite Restaurant","id":"1c5d2548-a0f4-4877-8431-e31faaf35765","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"http://127.0.0.1:8000/api/users/addFavorite/:restaurantId","urlObject":{"protocol":"http","port":"8000","path":["api","users","addFavorite",":restaurantId"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>Restaurant Id</p>\n","type":"text/plain"},"type":"any","value":"","key":"restaurantId"}]}},"response":[],"_postman_id":"1c5d2548-a0f4-4877-8431-e31faaf35765"},{"name":"Edit a User","id":"c8facc02-f420-49b0-97a8-87598a12a1ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"userName\": \"username\",\n    \"email\": \"edited@gmail.com\",\n    \"firstName\": \"Big\",\n    \"lastName\": \"Data\",\n    \"oldPassword\": \"password\",\n    \"newPassword\": \"Password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/users/:id/edit","urlObject":{"protocol":"http","port":"8000","path":["api","users",":id","edit"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>user id </p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"c8facc02-f420-49b0-97a8-87598a12a1ce"},{"name":"Follow Another User","id":"2f6b85f6-a31d-46dd-8ba4-2023c3494b25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"http://127.0.0.1:8000/api/users/follow/:otherId","urlObject":{"protocol":"http","port":"8000","path":["api","users","follow",":otherId"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>other user's id </p>\n","type":"text/plain"},"type":"any","value":"","key":"otherId"}]}},"response":[],"_postman_id":"2f6b85f6-a31d-46dd-8ba4-2023c3494b25"},{"name":"Delete a User","id":"eb5d14f0-da02-4a6e-94aa-996559129198","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/api/users/:id/delete","urlObject":{"protocol":"http","port":"8000","path":["api","users",":id","delete"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>user id </p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"eb5d14f0-da02-4a6e-94aa-996559129198"}],"id":"8c1dce51-8401-457f-89fc-a49bcdaf8091","_postman_id":"8c1dce51-8401-457f-89fc-a49bcdaf8091","description":""},{"name":"Restaurants","item":[{"name":"Get All Restaurants","id":"6f321454-4ed2-4172-803d-d31b57e9e6f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/restaurants/all","urlObject":{"protocol":"http","port":"8000","path":["api","restaurants","all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f321454-4ed2-4172-803d-d31b57e9e6f2"},{"name":"Add Menu Item","id":"782d004f-92a0-4558-b7c2-dd838f854a87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Delicious Data","type":"text"},{"key":"description","value":"Delicious Data Description","type":"text"},{"key":"price","value":"32","type":"text"},{"key":"itemType","value":"Main Course","type":"text"}]},"url":"http://127.0.0.1:8000/api/restaurants/:id/addMenuItem","urlObject":{"protocol":"http","port":"8000","path":["api","restaurants",":id","addMenuItem"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>Restaurant Id</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"782d004f-92a0-4558-b7c2-dd838f854a87"},{"name":"Register a New Restaurant","id":"313ae9ac-f51e-4c82-b867-fdaf462c5a4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"restaurant name\",\n    \"email\": \"email@munch.com\",\n    \"password\": \"password\",\n    \"category\": \"lunch\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/restaurants/register","description":"<p>api/restaraunts/register</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","restaurants","register"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"313ae9ac-f51e-4c82-b867-fdaf462c5a4e"},{"name":"Restaurant Login","id":"c110bddf-6256-40a7-9a34-e8553d68450f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"email@munch.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/restaurants/login","urlObject":{"protocol":"http","port":"8000","path":["api","restaurants","login"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"c110bddf-6256-40a7-9a34-e8553d68450f"},{"name":"Edit a Menu Item","id":"c23031c6-47a4-4157-85a0-df08f947d069","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Updated Delicious Data Name","type":"text"},{"key":"description","value":"Updated Delicious Data Description","type":"text"},{"key":"price","value":"10","type":"text"},{"key":"itemType","value":"Updated","type":"text"}]},"url":"http://127.0.0.1:8000/api/restaurants/:id/:itemid/editMenuItem","urlObject":{"protocol":"http","port":"8000","path":["api","restaurants",":id",":itemid","editMenuItem"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>Restaurant id</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"},{"description":{"content":"<p>Menu Item id </p>\n","type":"text/plain"},"type":"any","value":"","key":"itemid"}]}},"response":[],"_postman_id":"c23031c6-47a4-4157-85a0-df08f947d069"},{"name":"Edit a Restaurant","id":"54cc7f12-8f55-448b-86a8-84d0b14d7833","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Updated Restaurant Name\",\n    \"email\": \"email@munch.com\",\n    \"oldPassword\": \"Password\",\n    \"newPassword\": \"password\",\n    \"category\": \"Lunch\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/restaurants/:id/edit","urlObject":{"protocol":"http","port":"8000","path":["api","restaurants",":id","edit"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>Restaurant Id</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"54cc7f12-8f55-448b-86a8-84d0b14d7833"},{"name":"Delete a Menu Item","id":"2bf65a50-74fd-44ab-8f8c-2396ed2c0d3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/api/restaurants/:id/:itemid/delete","urlObject":{"protocol":"http","port":"8000","path":["api","restaurants",":id",":itemid","delete"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>restaurant id </p>\n","type":"text/plain"},"type":"any","value":"","key":"id"},{"description":{"content":"<p>menu item id </p>\n","type":"text/plain"},"type":"any","value":"","key":"itemid"}]}},"response":[],"_postman_id":"2bf65a50-74fd-44ab-8f8c-2396ed2c0d3d"},{"name":"Delete a Restaurant","id":"da5a91fb-0d29-4cb5-a82d-3057abe87965","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/api/restaurants/:id/delete","urlObject":{"protocol":"http","port":"8000","path":["api","restaurants",":id","delete"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>Restaurant Id</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"da5a91fb-0d29-4cb5-a82d-3057abe87965"}],"id":"af4126fb-ee31-41a2-836c-09630be97b7a","_postman_id":"af4126fb-ee31-41a2-836c-09630be97b7a","description":""},{"name":"Posts","item":[{"name":"Get All Post","id":"2b8f22d1-fa82-4830-84cd-2dc0e2b7ed67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/posts/index","description":"<p>Getting a specific post \n/api/posts/:postId</p>\n<p>Getting all post by author\n/api/posts/index/author/:authorId</p>\n<p>Get all post related to a restaurant\n/api/posts/index/restaurant/:restaurantId</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","posts","index"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b8f22d1-fa82-4830-84cd-2dc0e2b7ed67"},{"name":"Create a Post","id":"4038323f-354f-4ede-b07f-06df7070d3c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"New Post 1","type":"text"},{"key":"content","value":"This is a new post","type":"text"}]},"url":"http://127.0.0.1:8000/api/posts/createPost/:id","description":"<p>Creating a new post \napi/post/createPost/restarauntId/userId</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","posts","createPost",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>Restaurant Id</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"4038323f-354f-4ede-b07f-06df7070d3c9"},{"name":"Add a Comment","id":"5224b32c-238e-49d8-bce5-cb399b247434","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"header","value":"This is the comment title 1","type":"text"},{"key":"content","value":"Content goes here","type":"text"}]},"url":"http://127.0.0.1:8000/api/posts/addComment/:id","description":"<p>adding a comment to a post\n/api/post/:postId/:userId</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","posts","addComment",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>Post Id</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"5224b32c-238e-49d8-bce5-cb399b247434"},{"name":"Updating a Post","id":"7d0e7a84-6701-43d2-ad42-69ffd2888301","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://127.0.0.1:8000/api/posts/:id/update","urlObject":{"protocol":"http","port":"8000","path":["api","posts",":id","update"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>Post Id</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"7d0e7a84-6701-43d2-ad42-69ffd2888301"},{"name":"Updating a Comment","id":"3daa0d52-6666-4666-854c-e80f4768d22e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://127.0.0.1:8000/api/posts/:id/:cid/edit","urlObject":{"protocol":"http","port":"8000","path":["api","posts",":id",":cid","edit"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>Post Id</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"},{"description":{"content":"<p>Comment Id</p>\n","type":"text/plain"},"type":"any","value":"","key":"cid"}]}},"response":[],"_postman_id":"3daa0d52-6666-4666-854c-e80f4768d22e"},{"name":"Delete a Post","id":"15b4da58-1e9e-4d05-ab2c-903e461c5a5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/api/posts/:id/delete","description":"<p>Delete a Post</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","posts",":id","delete"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>Post Id</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"15b4da58-1e9e-4d05-ab2c-903e461c5a5a"},{"name":"Delete a Comment","id":"fecce1dd-1c7e-4cb3-a4bd-76ec866ccfb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/api/posts/:id/:cid/delete","urlObject":{"protocol":"http","port":"8000","path":["api","posts",":id",":cid","delete"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>Post Id</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"},{"description":{"content":"<p>Comment Id</p>\n","type":"text/plain"},"type":"any","value":"","key":"cid"}]}},"response":[],"_postman_id":"fecce1dd-1c7e-4cb3-a4bd-76ec866ccfb5"}],"id":"96e9e8c9-ace9-4115-9e90-c1047c3f4772","_postman_id":"96e9e8c9-ace9-4115-9e90-c1047c3f4772","description":""},{"name":"Orders","item":[{"name":"Order testing","id":"826db5c0-5722-45a5-ad57-759393657b6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/orders/","urlObject":{"protocol":"http","port":"8000","path":["api","orders",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"826db5c0-5722-45a5-ad57-759393657b6d"}],"id":"3d596523-0b1e-4463-bf13-2ebc54d32c90","_postman_id":"3d596523-0b1e-4463-bf13-2ebc54d32c90","description":""},{"name":"Categories","item":[{"name":"Get All Categories","id":"cd8dd5b6-7c64-4ae3-a67a-b578e81967e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"cd8dd5b6-7c64-4ae3-a67a-b578e81967e0"}],"id":"11454e2a-8762-44e6-9b46-1a3abc71e90c","_postman_id":"11454e2a-8762-44e6-9b46-1a3abc71e90c","description":""}]}