{"info":{"_postman_id":"0c23c4e6-9d14-47f4-a330-6e72ac50fae5","name":"RestaurantApp","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6737031","collectionId":"0c23c4e6-9d14-47f4-a330-6e72ac50fae5","publishedId":"2sAYQiC8QX","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-01-29T12:54:23.000Z"},"item":[{"name":"Location","item":[{"name":"Get Restaurant locations","id":"a788a79e-9564-4454-bcfc-5fea7bd58418","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-correlation-id","value":"2345678","type":"text"},{"key":"x-user-email","value":"ola@ola.com","type":"text"}],"url":"http://localhost:3000/api/locations","urlObject":{"protocol":"http","port":"3000","path":["api","locations"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a788a79e-9564-4454-bcfc-5fea7bd58418"},{"name":"create location","id":"35280db2-2ad1-4aeb-bb5a-b4182627ad18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-correlation-id","value":"5345678","type":"text"},{"key":"x-user-email","value":"ola@ola.com","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"postCode\": \"abc1\",\n    \"address\": \"Komune Living\",\n    \"city\": \"Kuala Lumpur\",\n    \"country\": \"Malaysia\",\n    \"state\": \"Kuala Lumpur\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/locations","urlObject":{"protocol":"http","port":"3000","path":["api","locations"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"35280db2-2ad1-4aeb-bb5a-b4182627ad18"}],"id":"25364c27-eddd-4e67-a694-f8cec2fa3364","_postman_id":"25364c27-eddd-4e67-a694-f8cec2fa3364","description":""},{"name":"Restaurant","item":[{"name":"Get Restaurants","id":"f3cde9e3-328c-4f2c-a9d4-c9deb7b250d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"x-user-email","value":"oyin2@gmail.com","type":"text"},{"key":"x-correlation-id","value":"87643234567","type":"text"}],"url":"http://localhost:4000/api/restaurants/","urlObject":{"protocol":"http","port":"4000","path":["api","restaurants",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3cde9e3-328c-4f2c-a9d4-c9deb7b250d1"},{"name":"Create Restaurant","id":"222464ec-fe81-4d36-8053-8a7b95917c09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"x-user-email","value":"oyin2@gmail.com","type":"text"},{"key":"x-correlation-id","value":"65432","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Dominos Pizzazs\",\n    \"email\": \"D2@gmail.com\",\n    \"isActive\": true,\n    \"location\": {\n        \"postCode\": \"12345\",\n        \"address\": \"Petalin Jaya\",\n        \"city\": \"AbKuala Lumpur\",\n        \"country\": \"Malaysia\",\n        \"state\": \"KL\"\n    },\n    \"imageUrl\":\"https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.gq-magazine.co.uk%2Fgallery%2Fromantic-restaurants-in-london&psig=AOvVaw2UR0KHqranlww-mawepeZP&ust=1675155797968000&source=images&cd=vfe&ved=0CA8QjRxqFwoTCICW0OT37vwCFQAAAAAdAAAAABAJ\",\n    \"openingHour\":10,\n    \"closingHour\":9,\n    \"menus\":[\"63d7699e1f571a896c3acfbe\", \"63d769ce1f571a896c3acfc8\"],\n    \"merchantId\": \"63d78441a6fda119c09b1930\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/restaurants/","urlObject":{"protocol":"http","port":"4000","path":["api","restaurants",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"222464ec-fe81-4d36-8053-8a7b95917c09"},{"name":"Get Restaurant By Id","id":"899c6f3c-b2a6-4491-94aa-95828c62a8d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"x-user-email","value":"oyin2@gmail.com","type":"text"},{"key":"x-correlation-id","value":"34544h342t4y54","type":"text"}],"url":"http://localhost:4000/api/restaurants/63d7994ad7f334035e38ca74","urlObject":{"protocol":"http","port":"4000","path":["api","restaurants","63d7994ad7f334035e38ca74"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"899c6f3c-b2a6-4491-94aa-95828c62a8d8"}],"id":"bd938e80-fbd2-44c0-b4ae-6b7808d012e6","_postman_id":"bd938e80-fbd2-44c0-b4ae-6b7808d012e6","description":""},{"name":"singleclient","item":[{"name":"Sign up User","id":"8251e125-e54f-48df-a91d-74f36981eb2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"oyin2@gmail.com\",\n    \"passwordHash\": \"omowunmi@&8\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/merchants/signup","urlObject":{"protocol":"http","port":"3000","path":["api","merchants","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8251e125-e54f-48df-a91d-74f36981eb2f"},{"name":"Get User By Id","id":"54f33e51-d6f3-4927-a292-b4ac310645ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"x-user-email","value":"oyin2@gmail.com","type":"text"},{"key":"x-correlation-id","value":"12345678","type":"text"}],"url":"http://localhost:4000/api/merchants/","urlObject":{"protocol":"http","port":"4000","path":["api","merchants",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"54f33e51-d6f3-4927-a292-b4ac310645ad"},{"name":"Login User","id":"9feaf423-0d50-4e3d-a00e-e2c6203e17c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"oyin2@gmail.com\",\n    \"password\": \"omowunmi@&8\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/merchants/signin","urlObject":{"protocol":"http","port":"4000","path":["api","merchants","signin"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9feaf423-0d50-4e3d-a00e-e2c6203e17c4"},{"name":"onBoard User","id":"98774556-37f3-468d-bf0f-a659b9832a17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[{"key":"x-user-email","value":"oyin2@gmail.com","type":"text"},{"key":"x-correlation-id","value":"1234567890","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\":\"Olasunkanmi3\",\n    \"lastName\":\"Oyinlola3\",\n    \"phoneNumber\":\"1234567829\",\n    \"organisationName\":\"Pickles Auctions\",\n    \"organisationAddress\":\"Kuala Lumpur3\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/merchants/onboarding","urlObject":{"protocol":"http","port":"3000","path":["api","merchants","onboarding"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"98774556-37f3-468d-bf0f-a659b9832a17"},{"name":"refresh token","id":"b0066cb3-8ddd-4385-9ffb-554b3147b0e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"x-user-email","value":"oyinolasunkan@gmail.com","type":"text"},{"key":"x-correlation-id","value":"9t34567898765","type":"text"}],"url":"http://localhost:3000/api/merchants/refresh","urlObject":{"protocol":"http","port":"3000","path":["api","merchants","refresh"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b0066cb3-8ddd-4385-9ffb-554b3147b0e0"}],"id":"92b98e6a-7740-436f-b977-91e219b183bd","_postman_id":"92b98e6a-7740-436f-b977-91e219b183bd","description":""},{"name":"Todo","item":[{"name":"Create Tag","id":"4f021be1-3983-4db3-88d9-7af68a9f0d83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"some4\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/tags","urlObject":{"protocol":"http","port":"3000","path":["api","tags"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f021be1-3983-4db3-88d9-7af68a9f0d83"},{"name":"Create Comment","id":"c1d84ce5-270a-4da0-b4f1-d584da7dcfe9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"content\":\"someContent is update\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/comments","urlObject":{"protocol":"http","port":"3000","path":["api","comments"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1d84ce5-270a-4da0-b4f1-d584da7dcfe9"},{"name":"Create Task","id":"e31447b7-fd0f-42d4-b8fa-e3cc3d85ba12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"title\":\"Deploy to the Cloud\",\n    \"description\":\"Details later today again\",\n    \"startDate\":\"2022-12-23T15:42:12.962Z\",\n    \"dueDate\":\"2022-12-24T15:42:12.962Z\",\n    \"tagIds\":[\"63a409232ca7f51228d6df72\", \"63a409ac2ca7f51228d6df75\"],\n    \"priority\":4,\n    \"isCompleted\":false,\n    \"comments\": [{\"content\":\"let me know once its ready. Thanks\"}, {\"content\":  \"Ok, I will review the code later\"}],\n    \"commentIds\": [\"63a671668360d5fda7ae4c56\", \"63a670d88360d5fda7ae4c52\"]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/tasks/","urlObject":{"protocol":"http","port":"3000","path":["api","tasks",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e31447b7-fd0f-42d4-b8fa-e3cc3d85ba12"},{"name":"Update Task","id":"a0111845-61de-4e31-b2e3-25ac50ea7594","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/tasks","urlObject":{"protocol":"http","port":"3000","path":["api","tasks"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a0111845-61de-4e31-b2e3-25ac50ea7594"},{"name":"Get Tasks","id":"ca3bf424-066d-46c1-a5ed-a1724fdddfe8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"ca3bf424-066d-46c1-a5ed-a1724fdddfe8"}],"id":"e4af81d4-9f96-4d7a-8c31-eca5146b6c2a","_postman_id":"e4af81d4-9f96-4d7a-8c31-eca5146b6c2a","description":""},{"name":"Item","item":[{"name":"Get Items","id":"9e4b5544-a06b-4791-8578-a4ecc127b183","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"x-user-email","value":"oyin1@gmail.com","type":"text"},{"key":"x-correlation-id","value":"87643234567","type":"text"}],"url":"http://localhost:4000/api/items/","urlObject":{"protocol":"http","port":"4000","path":["api","items",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e4b5544-a06b-4791-8578-a4ecc127b183"},{"name":"Create Item","id":"5d061651-3f14-4db5-92ef-6ca0a3c4e672","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-user-email","value":"oyin1@gmail.com","type":"text"},{"key":"x-correlation-id","value":"123456783456","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Beand and Dodo\",\n    \"description\": \"Sweet beans with Dodo\",\n    \"portion\": \"sharing\",\n    \"price\": 50,\n    \"quantity\": 10,\n    \"image\": \"https://guccilounge.net/wp/wp-content/uploads/2020/11/beansdodo8.jpg\",\n    \"tags\": [\"teaditional\", \"beans\"],\n    \"maximumPermitted\": 10,\n    \"taxRate\": 0.08,\n    \"addons\": [\"63e2217bacac310f1ab928e8\", \"63e22161acac310f1ab928e1\", \"63e2271aacac310f1ab9290c\"]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/items","urlObject":{"protocol":"http","port":"4000","path":["api","items"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5d061651-3f14-4db5-92ef-6ca0a3c4e672"}],"id":"66247e19-790f-4634-9e2d-c0b07347d944","_postman_id":"66247e19-790f-4634-9e2d-c0b07347d944","description":""},{"name":"Menu","item":[{"name":"Create Menu","id":"640e3128-ede1-4647-b61e-f059300e7917","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"x-user-email","value":"oyin1@gmail.com","type":"text"},{"key":"x-correlation-id","value":"87643234567","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Beans\",\n    \"description\": \"Delicious beans\",\n    \"itemIds\": [\n        \"63e22729acac310f1ab92914\"\n    ],\n    \"imageUrl\": \"https://i.pinimg.com/736x/70/87/52/708752b783aad5a81b9ac095ee9db727.jpg\",\n    \"basePrice\": 70,\n    \"categoryId\": \"63e3b5a6bc72d5789c7ae922\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/menus/63e3ba9ebd79befde059d057","urlObject":{"protocol":"http","port":"4000","path":["api","menus","63e3ba9ebd79befde059d057"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"640e3128-ede1-4647-b61e-f059300e7917"},{"name":"Get Menus","id":"11d86dd6-aa48-4118-97ff-ca40fc30c607","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-user-email","value":"oyin1@gmail.com","type":"text"},{"key":"x-correlation-id","value":"23454532165423134","type":"text"}],"url":"http://localhost:4000/api/menus/","urlObject":{"protocol":"http","port":"4000","path":["api","menus",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"11d86dd6-aa48-4118-97ff-ca40fc30c607"},{"name":"update Menu","id":"8ca6cd28-ff26-4a5f-86cc-8846b8f04acc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"x-user-email","value":"oyin1@gmail.com","type":"text"},{"key":"x-correlation-id","value":"1234567543","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"items\": [\"93e22622acac310f1ab92900\"]\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/menus/63e3ba9ebd79befde059d057/x","urlObject":{"protocol":"http","port":"4000","path":["api","menus","63e3ba9ebd79befde059d057","x"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ca6cd28-ff26-4a5f-86cc-8846b8f04acc"},{"name":"Delete Menu","id":"ee2c0fd1-75ff-4df0-ba9d-5140ec4818dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"ee2c0fd1-75ff-4df0-ba9d-5140ec4818dd"},{"name":"Restaurant Menu","id":"d79c866c-75a9-455e-9390-a368f97b0436","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"d79c866c-75a9-455e-9390-a368f97b0436"}],"id":"50e63db3-cd07-4760-8d89-b61b212a4cec","_postman_id":"50e63db3-cd07-4760-8d89-b61b212a4cec","description":""},{"name":"Addon","item":[{"name":"Create Addon","id":"15505eca-27d8-4fa7-a107-33bdef145f9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-user-email","value":"oyin1@gmail.com","type":"text"},{"key":"x-correlation-id","value":"987654345678","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Tilapia\",\n    \"categoryId\": \"63e226e4acac310f1ab92907\",\n    \"quantity\": 10\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/addons/","urlObject":{"protocol":"http","port":"4000","path":["api","addons",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"15505eca-27d8-4fa7-a107-33bdef145f9a"}],"id":"0c3ba795-635d-4be1-83fb-54c8d72c4179","_postman_id":"0c3ba795-635d-4be1-83fb-54c8d72c4179","description":""},{"name":"Category","item":[{"name":"Create category","id":"a4fd22db-b758-4939-abb6-f52df6a75476","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"x-user-email","value":"oyin1@gmail.com","type":"text"},{"key":"x-correlation-id","value":"1234567543","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Dinner\",\n    \"description\":\"This describes the kind of food category the menu falls into\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/categories/","urlObject":{"protocol":"http","port":"4000","path":["api","categories",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4fd22db-b758-4939-abb6-f52df6a75476"},{"name":"New Request","id":"a5d41eda-55c5-4229-96ef-92a077018df7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"a5d41eda-55c5-4229-96ef-92a077018df7"}],"id":"e4d63ef7-3f13-4845-9710-c163fc06adb9","_postman_id":"e4d63ef7-3f13-4845-9710-c163fc06adb9","description":""},{"name":"Order","item":[{"name":"create","id":"4a6080b3-2e46-436d-8546-bff8f4fe6c9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-user-email","value":"oyin2@gmail.com","type":"text"},{"key":"x-correlation-id","value":"6492f49484a2ceff382354e8","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"state\": \"CREATED\",\n    \"type\": \"DINE_IN\",\n    \"singleClientId\": \"63d78441a6fda119c09b1930\",\n    \"total\": 310,\n    \"cartItems\": [\n        {\n            \"menuId\": \"6492df00e7f3f8291412a2cf\",\n            \"total\": 250,\n            \"note\": \"Make it less spicy, Kurang manis\",\n            \"selectedItems\": [\n                {\n                    \"menuId\": \"6492df00e7f3f8291412a2cf\",\n                    \"itemId\": \"6492d2aadb46e8e70da4b768\",\n                    \"price\": 100,\n                    \"quantity\": 1\n                },\n                {\n                    \"menuId\": \"6492df00e7f3f8291412a2cf\",\n                    \"itemId\": \"6492d311db46e8e70da4b76d\",\n                    \"price\": 150,\n                    \"quantity\": 1\n                }\n            ]\n        },\n        {\n            \"menuId\": \"6492f50f84a2ceff382354f8\",\n            \"total\": 60,\n            \"note\": \"Make it less sweet\",\n            \"selectedItems\": [\n                {\n                    \"menuId\": \"6492f50f84a2ceff382354f8\",\n                    \"itemId\": \"6492f47984a2ceff382354e3\",\n                    \"price\": 30,\n                    \"quantity\": 1\n                },\n                {\n                    \"menuId\": \"6492f50f84a2ceff382354f8\",\n                    \"itemId\": \"6492f49484a2ceff382354e8\",\n                    \"price\": 30,\n                    \"quantity\": 1\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/orders/create","urlObject":{"protocol":"http","port":"4000","path":["api","orders","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a6080b3-2e46-436d-8546-bff8f4fe6c9c"},{"name":"getOrders","id":"6e8fd83b-4f96-4461-9390-b5c85ab930ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"6e8fd83b-4f96-4461-9390-b5c85ab930ef"}],"id":"5e870ae3-8ca6-4e07-99de-c41ed1814b33","_postman_id":"5e870ae3-8ca6-4e07-99de-c41ed1814b33","description":""},{"name":"OrderStatus","item":[{"name":"New Request","id":"488a512b-084f-482a-a023-c53b5c0144d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"488a512b-084f-482a-a023-c53b5c0144d3"}],"id":"3dc4d737-0a4a-44c7-8711-05028bf27fa6","_postman_id":"3dc4d737-0a4a-44c7-8711-05028bf27fa6","description":""},{"name":"Notes","item":[{"name":"create","id":"4521a3e1-7b0d-4321-a8cf-661b4b5e3b8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-user-email","value":"oyin2@gmail.com","type":"text"},{"key":"x-correlation-id","value":"6492f49484a2ceff382354e8","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"state\": \"CREATED\",\n    \"type\": \"DINE_IN\",\n    \"merchantId\": \"63d78441a6fda119c09b1930\",\n    \"total\": 390,\n    \"cartItems\": [\n        {\n            \"menuId\": \"6492df00e7f3f8291412a2cf\",\n            \"total\": 270,\n            \"note\": \"Make it less spicy, Kurang manis\",\n            \"selectedItems\": [\n                {\n                    \"menuId\": \"6492df00e7f3f8291412a2cf\",\n                    \"itemId\": \"6492d2aadb46e8e70da4b768\",\n                    \"price\": 100,\n                    \"quantity\": 1\n                },\n                {\n                    \"menuId\": \"6492df00e7f3f8291412a2cf\",\n                    \"itemId\": \"6492d311db46e8e70da4b76d\",\n                    \"price\": 150,\n                    \"quantity\": 1\n                }\n            ]\n        },\n        {\n            \"menuId\": \"6492f50f84a2ceff382354f8\",\n            \"total\": 60,\n            \"note\": \"Make it less sweet\",\n            \"selectedItems\": [\n                {\n                    \"menuId\": \"6492f50f84a2ceff382354f8\",\n                    \"itemId\": \"6492f47984a2ceff382354e3\",\n                    \"price\": 20,\n                    \"quantity\": 1\n                },\n                {\n                    \"menuId\": \"6492f50f84a2ceff382354f8\",\n                    \"itemId\": \"6492f49484a2ceff382354e8\",\n                    \"price\": 20,\n                    \"quantity\": 1\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/orders/create","urlObject":{"protocol":"http","port":"4000","path":["api","orders","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4521a3e1-7b0d-4321-a8cf-661b4b5e3b8b"}],"id":"c7b7dc5e-6b11-4b45-b575-6cd5caea52e5","_postman_id":"c7b7dc5e-6b11-4b45-b575-6cd5caea52e5","description":""},{"name":"Application datamodel","id":"ed8e678d-cb73-4ff5-9151-b152424aa10f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"declare module namespace {\n\n    export interface PaymentMethod {\n        id: string;\n        type: string;\n    }\n\n    export interface DeliverableArea {\n        id: string;\n        name: string;\n    }\n\n    export interface Rating {\n        rating: string;\n    }\n\n    export interface RestaurantDiscount {\n        type: string;\n        value: string;\n    }\n\n    export interface RestaurantInfo {\n        id: string;\n        sponsored: string;\n        user-favourite: string;\n        name: string;\n        address: string;\n        rating: string;\n        minimum-order-price: string;\n        delivery-fee: string;\n        avg_delivery_time: string;\n        logo: string;\n        open-status: string;\n        default-ad: string;\n        review-enabled: string;\n        social-share: string;\n        value?: any;\n        total-category: string;\n        site-url: string;\n        location-img: string;\n        restaurant-url: string;\n        payment-methods: PaymentMethod[];\n        delivery-types: string;\n        tags: any[];\n        deliverable-area: DeliverableArea[];\n        ratings: Rating[];\n        total-food-items: string;\n        facebook-like-link: string;\n        description: string;\n        restaurant-discount: RestaurantDiscount;\n        restaurant-images: string[];\n    }\n\n    export interface Sat {\n        open: string;\n        close: string;\n    }\n\n    export interface Sun {\n        open: string;\n        close: string;\n    }\n\n    export interface Mon {\n        open: string;\n        close: string;\n    }\n\n    export interface Tue {\n        open: string;\n        close: string;\n    }\n\n    export interface Wed {\n        open: string;\n        close: string;\n    }\n\n    export interface Thu {\n        open: string;\n        close: string;\n    }\n\n    export interface Fri {\n        open: string;\n        close: string;\n    }\n\n    export interface RestaurantTimeInfo {\n        sat: Sat[];\n        sun: Sun[];\n        mon: Mon[];\n        tue: Tue[];\n        wed: Wed[];\n        thu: Thu[];\n        fri: Fri[];\n    }\n\n    export interface Discount {\n        type: string;\n        amount: string;\n    }\n\n    export interface SubItem {\n        id: string;\n        name: string;\n        position: number;\n        price: string;\n        consumable: string;\n        cuisine_name: string;\n        category_name: string;\n        discount: Discount;\n        tags: any[];\n    }\n\n    export interface MenuItem {\n        id: string;\n        name: string;\n        position: number;\n        description: string;\n        images: any[];\n        sub-items: SubItem[];\n    }\n\n    export interface Category {\n        id: string;\n        name: string;\n        position: string;\n        menu-items: MenuItem[];\n    }\n\n    export interface Array {\n        type: string;\n        restaurant-info: RestaurantInfo;\n        restaurant-time-info: RestaurantTimeInfo;\n        today: string;\n        working-hours-start: string;\n        working-hours-end: string;\n        categorys: Category[];\n        deals: any[];\n    }\n\n    export interface RootObject {\n        array: Array;\n    }\n\n}\n\n","options":{"raw":{"language":"json"}}},"url":"","description":"<p>This will hold the final json for the application</p>\n","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"ed8e678d-cb73-4ff5-9151-b152424aa10f"}]}