{"info":{"_postman_id":"270701b2-583a-4a69-9b0c-9ee7823fead0","name":"RestoMatic","description":"<html><head></head><body><p>This documentation is for a <strong>REST API</strong> for the project <strong>RestoMatic.</strong> It provides endpoints for <em>retrieving</em> and <em>inserting</em> data into the database, as well as examples.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"22652839","collectionId":"270701b2-583a-4a69-9b0c-9ee7823fead0","publishedId":"2s93sc5sxd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-06-11T15:40:09.000Z"},"item":[{"name":"Customers","item":[{"name":"Get all customers","id":"a6faa21e-ee3d-47ac-b1b3-90f053a1e1fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/customers/","description":"<p>Get all customers</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","customers",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f13c83a3-4b0a-4a47-bb14-034b97320998","name":"Get all customers","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/customers/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"490"},{"key":"ETag","value":"W/\"1ea-ubqaF32uYDDdW4FhmiNvXs3ck/4\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:41:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"data\": [\n        {\n            \"id\": 3,\n            \"username\": \"zalfyzalfy\",\n            \"password\": \"$2b$10$xDl8WC9suGEg12BgeV.Ie.54Zpj99hUnkApNUi/ln6Rwr/NgLWcoq\",\n            \"email\": \"zalfy@gmail.com\",\n            \"balance\": \"0.00\"\n        },\n        {\n            \"id\": 2,\n            \"username\": \"senoseno\",\n            \"password\": \"$2b$10$IO9zwXsoJGrwstH9OQ/HUu.0Uy7gFlZtdJfBi4WuUKUZSzd7oPtKC\",\n            \"email\": \"seno@gmail.com\",\n            \"balance\": \"46.06\"\n        },\n        {\n            \"id\": 1,\n            \"username\": \"althafnaa\",\n            \"password\": \"$2b$10$2ahvgjPaAGW6DVzCODwQz.C3mMlRiqRI4vhnnOWi49UFANWrcqCEa\",\n            \"email\": \"althafnaa@gmail.com\",\n            \"balance\": \"720.65\"\n        }\n    ]\n}"}],"_postman_id":"a6faa21e-ee3d-47ac-b1b3-90f053a1e1fc"},{"name":"Get customer by ID","id":"86398bc4-a62b-4cad-b45b-21495c2e67d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/customers/1","description":"<p>Get a customer by ID</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","customers","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"53541fbb-a35d-4fcb-b6fc-996a9cb1065d","name":"Get customer by ID","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/customers/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"190"},{"key":"ETag","value":"W/\"be-1so9Oa2sMIhCot5AL/iEp0PODWc\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:42:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"data\": {\n        \"id\": 1,\n        \"username\": \"althafnaa\",\n        \"password\": \"$2b$10$2ahvgjPaAGW6DVzCODwQz.C3mMlRiqRI4vhnnOWi49UFANWrcqCEa\",\n        \"email\": \"althafnaa@gmail.com\",\n        \"balance\": \"720.65\"\n    }\n}"}],"_postman_id":"86398bc4-a62b-4cad-b45b-21495c2e67d4"},{"name":"Customer login","id":"4d47117c-0418-40ca-8bf3-c3796521f851","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"althafnaaa","type":"text","disabled":true},{"key":"password","value":"Pass123","type":"text"},{"key":"email","value":"althafnaa@gmail.com","type":"text"}]},"url":"http://localhost:4000/api/customers/login","urlObject":{"protocol":"http","port":"4000","path":["api","customers","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"39dda3ab-75b2-425a-bbe4-de723b1a2971","name":"Customer login","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"althafnaaa","type":"text","disabled":true},{"key":"password","value":"Pass123","type":"text"},{"key":"email","value":"althafnaa@gmail.com","type":"text"}]},"url":"http://localhost:4000/api/customers/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"169"},{"key":"ETag","value":"W/\"a9-gLdSukESSuhJ8uHQgqwPnSBxCxo\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:42:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Succesfully logged in\",\n    \"data\": {\n        \"login\": true,\n        \"accountDetails\": {\n            \"id\": 1,\n            \"username\": \"althafnaa\",\n            \"email\": \"althafnaa@gmail.com\",\n            \"balance\": \"720.65\"\n        }\n    }\n}"}],"_postman_id":"4d47117c-0418-40ca-8bf3-c3796521f851"},{"name":"Customer register","id":"09576def-c2a7-4db3-aac1-7c78bd49fe61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"zalfyzalfy","type":"text"},{"key":"email","value":"zalfy@gmail.com","type":"text"},{"key":"password","value":"Pass123","type":"text"}]},"url":"http://localhost:4000/api/customers/register","urlObject":{"protocol":"http","port":"4000","path":["api","customers","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e53c8e5a-177b-45da-99db-f5512b6e4ea7","name":"Customer register","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"admin_","type":"text"},{"key":"email","value":"admin@gmail.com","type":"text"},{"key":"password","value":"Admin123","type":"text"}]},"url":"http://localhost:4000/api/customers/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"220"},{"key":"ETag","value":"W/\"dc-kUDHDBUSvthEhLA7n49k3M5rgBQ\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:49:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"[db] Insertion to customers successful:\",\n    \"data\": {\n        \"id\": 5,\n        \"username\": \"admin_\",\n        \"password\": \"$2b$10$6jAuISkQQbiz7yW5WhlAlehVF8l4KZ45zAElMOb31.Q7XmOt7yRBy\",\n        \"email\": \"admin@gmail.com\",\n        \"balance\": \"0.00\"\n    }\n}"}],"_postman_id":"09576def-c2a7-4db3-aac1-7c78bd49fe61"},{"name":"Customer logout","id":"63db6037-a3ee-49dc-b7e7-db9a7b8222cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:4000/api/customers/logout","urlObject":{"protocol":"http","port":"4000","path":["api","customers","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"298b5b80-4976-433c-92f2-c5ba417a00a4","name":"Customer logout","originalRequest":{"method":"POST","header":[],"url":"http://localhost:4000/api/customers/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"66"},{"key":"ETag","value":"W/\"42-H1c7tFzlZ5QUvQ3cBLg2EPgNBkU\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:49:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Successfully logged out\",\n    \"data\": {}\n}"}],"_postman_id":"63db6037-a3ee-49dc-b7e7-db9a7b8222cd"},{"name":"Delete customer by ID","id":"66abeb32-e913-4f94-b670-a7d172099385","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/customers/5","urlObject":{"protocol":"http","port":"4000","path":["api","customers","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7e48bd0e-c3ed-467d-bee7-87e3db669e37","name":"Delete customer by ID","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/customers/5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"181"},{"key":"ETag","value":"W/\"b5-bAYVTLHDR8EQ2xvQT1VG5jAOh+4\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:50:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"data\": {\n        \"id\": 5,\n        \"username\": \"admin_\",\n        \"password\": \"$2b$10$6jAuISkQQbiz7yW5WhlAlehVF8l4KZ45zAElMOb31.Q7XmOt7yRBy\",\n        \"email\": \"admin@gmail.com\",\n        \"balance\": \"0.00\"\n    }\n}"}],"_postman_id":"66abeb32-e913-4f94-b670-a7d172099385"},{"name":"Top up customer by ID","id":"99d3ee9a-6fd6-4567-b60f-d0d23e62d5c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"http://localhost:4000/api/customers/1/topup/?amount=500","urlObject":{"protocol":"http","port":"4000","path":["api","customers","1","topup",""],"host":["localhost"],"query":[{"key":"amount","value":"500"}],"variable":[]}},"response":[{"id":"1b25f1cf-1175-427e-aa03-80ba657c5e6a","name":"Top up customer by ID","originalRequest":{"method":"PATCH","header":[],"url":{"raw":"http://localhost:4000/api/customers/1/topup/?amount=500","protocol":"http","host":["localhost"],"port":"4000","path":["api","customers","1","topup",""],"query":[{"key":"amount","value":"500"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"235"},{"key":"ETag","value":"W/\"eb-lv5SXY/5uFh7fCk/79vzNBJoGdY\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:50:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"[db] customers topup successful\",\n    \"data\": {\n        \"id\": 1,\n        \"username\": \"althafnaa\",\n        \"password\": \"$2b$10$2ahvgjPaAGW6DVzCODwQz.C3mMlRiqRI4vhnnOWi49UFANWrcqCEa\",\n        \"email\": \"althafnaa@gmail.com\",\n        \"balance\": \"1220.65\",\n        \"topup\": true\n    }\n}"}],"_postman_id":"99d3ee9a-6fd6-4567-b60f-d0d23e62d5c4"}],"id":"3cbfe62d-b180-4a26-b08b-610e87fb5d90","_postman_id":"3cbfe62d-b180-4a26-b08b-610e87fb5d90","description":""},{"name":"Reviews","item":[{"name":"Get all reviews","id":"d51189c0-ab91-4eb8-9943-b35fc846599c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/reviews/","urlObject":{"protocol":"http","port":"4000","path":["api","reviews",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"afc6fe01-e32e-4596-89e4-0aaf3b3f953d","name":"Get all reviews","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/reviews/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"976"},{"key":"ETag","value":"W/\"3d0-ehDZGol3ygRQqcxE0avkZO0NJ9U\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:50:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"customer_id\": \"1\",\n            \"customer_username\": \"althafnaa\",\n            \"restaurant_id\": \"3\",\n            \"restaurant_name\": \"Chick-fil-A\",\n            \"restaurant_image\": \"https://d1yjjnpx0p53s8.cloudfront.net/styles/logo-thumbnail/s3/042013/chick-fil-a.png\",\n            \"comment\": \"The chicken sandwich was delightful!\",\n            \"rating\": \"4.0\",\n            \"created_at\": \"2023-06-10T22:09:29.459Z\"\n        },\n        {\n            \"id\": 2,\n            \"customer_id\": \"1\",\n            \"customer_username\": \"althafnaa\",\n            \"restaurant_id\": \"4\",\n            \"restaurant_name\": \"Shake Shack\",\n            \"restaurant_image\": \"https://companieslogo.com/img/orig/SHAK-3a2893f1.png\",\n            \"comment\": \"Nice burgers!\",\n            \"rating\": \"5.0\",\n            \"created_at\": \"2023-06-10T22:13:46.218Z\"\n        },\n        {\n            \"id\": 3,\n            \"customer_id\": \"2\",\n            \"customer_username\": \"senoseno\",\n            \"restaurant_id\": \"5\",\n            \"restaurant_name\": \"Dominos Pizza\",\n            \"restaurant_image\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/Dominos_pizza_logo.svg/1200px-Dominos_pizza_logo.svg.png\",\n            \"comment\": \"The pizzas tastes delicious here :D\",\n            \"rating\": \"4.3\",\n            \"created_at\": \"2023-06-11T08:18:50.717Z\"\n        }\n    ]\n}"}],"_postman_id":"d51189c0-ab91-4eb8-9943-b35fc846599c"},{"name":"Get reviews by ID","id":"21c1d623-2e47-4ba2-82ba-ff1cad1f1e54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/reviews/3","urlObject":{"protocol":"http","port":"4000","path":["api","reviews","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"954f5a77-0cfe-475d-94ca-48bd0d13ea47","name":"Get reviews by ID","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/reviews/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"386"},{"key":"ETag","value":"W/\"182-AqealY8Z96o4dN6g95oulr++xCU\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:50:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"data\": {\n        \"id\": 3,\n        \"customer_id\": \"2\",\n        \"customer_username\": \"senoseno\",\n        \"restaurant_id\": \"5\",\n        \"restaurant_name\": \"Dominos Pizza\",\n        \"restaurant_image\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/Dominos_pizza_logo.svg/1200px-Dominos_pizza_logo.svg.png\",\n        \"comment\": \"The pizzas tastes delicious here :D\",\n        \"rating\": \"4.3\",\n        \"created_at\": \"2023-06-11T08:18:50.717Z\"\n    }\n}"}],"_postman_id":"21c1d623-2e47-4ba2-82ba-ff1cad1f1e54"},{"name":"Create a new review","id":"908eca85-e49a-4cec-a9b4-db1c7a82957f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"comment","value":"The coffee was ok, donuts were nice though","type":"text"},{"key":"rating","value":"5.1","type":"text"},{"key":"customer_id","value":"94","type":"text"},{"key":"restaurant_id","value":"19","type":"text"}]},"url":"http://localhost:4000/api/reviews/","urlObject":{"protocol":"http","port":"4000","path":["api","reviews",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"908eca85-e49a-4cec-a9b4-db1c7a82957f"},{"name":"Delete review by ID","id":"c86b723d-b213-49c5-b776-4eac953c18e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/reviews/3","urlObject":{"protocol":"http","port":"4000","path":["api","reviews","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c86b723d-b213-49c5-b776-4eac953c18e6"},{"name":"Get reviews by restaurant ID","id":"40da284d-ee8a-415d-b8ec-8a5bed9a87cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/reviews/?restaurantId=19","urlObject":{"protocol":"http","port":"4000","path":["api","reviews",""],"host":["localhost"],"query":[{"key":"restaurantId","value":"19"}],"variable":[]}},"response":[],"_postman_id":"40da284d-ee8a-415d-b8ec-8a5bed9a87cd"}],"id":"6c964374-8ecf-458b-9fb9-330e6046b977","_postman_id":"6c964374-8ecf-458b-9fb9-330e6046b977","description":""},{"name":"Restaurants","item":[{"name":"Get all restaurants","id":"3806133c-8be8-4ca4-98ee-414841390e75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/restaurants","urlObject":{"protocol":"http","port":"4000","path":["api","restaurants"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"060ab25c-51a5-4652-859c-96846abcb0a0","name":"Get all restaurants","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/restaurants"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1826"},{"key":"ETag","value":"W/\"722-gjieVu9/PHHlpZ+UfHFWt/tmF5Y\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:50:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"data\": [\n        {\n            \"id\": 9,\n            \"image\": \"https://seeklogo.com/images/D/dunkin-donuts-logo-1E269BA8F1-seeklogo.com.png\",\n            \"name\": \"Dunkin Donuts\",\n            \"description\": \"Global baked goods and coffee chain\",\n            \"average_rating\": null\n        },\n        {\n            \"id\": 3,\n            \"image\": \"https://d1yjjnpx0p53s8.cloudfront.net/styles/logo-thumbnail/s3/042013/chick-fil-a.png\",\n            \"name\": \"Chick-fil-A\",\n            \"description\": \"Famous for its chicken sandwiches and waffle fries.\",\n            \"average_rating\": \"4.00\"\n        },\n        {\n            \"id\": 5,\n            \"image\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/Dominos_pizza_logo.svg/1200px-Dominos_pizza_logo.svg.png\",\n            \"name\": \"Dominos Pizza\",\n            \"description\": \"Delivery and takeout pizza with various toppings and sides.\",\n            \"average_rating\": \"4.30\"\n        },\n        {\n            \"id\": 4,\n            \"image\": \"https://companieslogo.com/img/orig/SHAK-3a2893f1.png\",\n            \"name\": \"Shake Shack\",\n            \"description\": \"Gourmet burgers, hot dogs, and milkshakes.\",\n            \"average_rating\": \"5.00\"\n        },\n        {\n            \"id\": 6,\n            \"image\": \"https://logos-download.com/wp-content/uploads/2016/03/McDonalds_France_Logo_2003.png\",\n            \"name\": \"McDonalds\",\n            \"description\": \"World-famous fast food chain\",\n            \"average_rating\": null\n        },\n        {\n            \"id\": 2,\n            \"image\": \"https://1000logos.net/wp-content/uploads/2017/06/Taco-Bell-Logo-1994.png\",\n            \"name\": \"Taco Bell\",\n            \"description\": \"Mexican-inspired fast food with a variety of tacos and burritos.\",\n            \"average_rating\": null\n        },\n        {\n            \"id\": 7,\n            \"image\": \"https://www.freepnglogos.com/uploads/starbucks-logo-png-transparent-0.png\",\n            \"name\": \"Starbucks\",\n            \"description\": \"Coffeehouse chain\",\n            \"average_rating\": null\n        },\n        {\n            \"id\": 1,\n            \"image\": \"https://seeklogo.com/images/K/kfc-new-logo-72E6348046-seeklogo.com.png\",\n            \"name\": \"KFC\",\n            \"description\": \"Finger-licking good fried chicken and fast food.\",\n            \"average_rating\": null\n        },\n        {\n            \"id\": 8,\n            \"image\": \"https://d26eb5y2jukpbz.cloudfront.net/ebs/archive/2019/media/OS_DE19085M_11.jpg\",\n            \"name\": \"Subway\",\n            \"description\": \"Sandwich restaurant franchise\",\n            \"average_rating\": null\n        }\n    ]\n}"}],"_postman_id":"3806133c-8be8-4ca4-98ee-414841390e75"},{"name":"Get restaurant by ID","id":"e6f03c64-c352-4869-b3bf-51be61323794","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/restaurants/1","urlObject":{"protocol":"http","port":"4000","path":["api","restaurants","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7745e9f0-c89c-48ae-82ca-e1888b6b575d","name":"Get restaurant by ID","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/restaurants/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"225"},{"key":"ETag","value":"W/\"e1-TMiHLvHSjDX8p/UfIC4TBW37tmo\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:51:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"data\": {\n        \"id\": 1,\n        \"image\": \"https://seeklogo.com/images/K/kfc-new-logo-72E6348046-seeklogo.com.png\",\n        \"name\": \"KFC\",\n        \"description\": \"Finger-licking good fried chicken and fast food.\",\n        \"average_rating\": null\n    }\n}"}],"_postman_id":"e6f03c64-c352-4869-b3bf-51be61323794"},{"name":"Create a new restaurant","id":"771fc5a2-99a8-49dc-86fa-315e39316ba5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"McDonalds","type":"text"},{"key":"description","value":"We serve amazing fries!","type":"text"},{"key":"image","value":"","type":"text","disabled":true}]},"url":"http://localhost:4000/api/customers/","urlObject":{"protocol":"http","port":"4000","path":["api","customers",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e046fb06-5e48-4c18-bdc3-107310f2a4f5","name":"Create a new restaurant","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Kantek Resto","type":"text"},{"key":"description","value":"Nasi goreng everyday","type":"text"},{"key":"image","value":"nasgor.png","type":"text"}]},"url":"http://localhost:4000/api/restaurants/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"165"},{"key":"ETag","value":"W/\"a5-roz2w+L/bFpJKdYXckDzSdomb2Y\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:51:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"[db] Insertion to restaurants successful\",\n    \"data\": {\n        \"id\": 10,\n        \"image\": \"nasgor.png\",\n        \"name\": \"Kantek Resto\",\n        \"description\": \"Nasi goreng everyday\"\n    }\n}"}],"_postman_id":"771fc5a2-99a8-49dc-86fa-315e39316ba5"},{"name":"Delete restaurant by ID","id":"676ddcc7-ea62-4785-ba8e-66033b58bb63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/restaurants/3","urlObject":{"protocol":"http","port":"4000","path":["api","restaurants","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4460cf29-59c5-4e34-ad51-76654e530eea","name":"Delete restaurant by ID","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/restaurants/10"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"125"},{"key":"ETag","value":"W/\"7d-HbU+wCSegIgM3clw0A0QkZ9Ywtg\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:51:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"data\": {\n        \"id\": 10,\n        \"image\": \"nasgor.png\",\n        \"name\": \"Kantek Resto\",\n        \"description\": \"Nasi goreng everyday\"\n    }\n}"}],"_postman_id":"676ddcc7-ea62-4785-ba8e-66033b58bb63"}],"id":"0c162113-557b-42b2-893b-6c9c98fc036f","_postman_id":"0c162113-557b-42b2-893b-6c9c98fc036f","description":""},{"name":"Orders","item":[{"name":"Get all orders","id":"662f8a3c-af55-48ee-a740-9cc9c1a1b8d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/orders/","urlObject":{"protocol":"http","port":"4000","path":["api","orders",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ea487d1e-135b-4a53-a056-817be9e4a185","name":"Get all orders","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/orders/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"593"},{"key":"ETag","value":"W/\"251-hGyuQF8jSHGhqNl6lI2aDRpvGgg\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:51:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"customer_id\": \"1\",\n            \"address\": \"Jl. Kebagusan Dalam 1 No. 40\",\n            \"restaurant_id\": \"3\",\n            \"created_at\": \"2023-06-10T22:09:01.232Z\"\n        },\n        {\n            \"id\": 2,\n            \"customer_id\": \"1\",\n            \"address\": \"Jl. Kebagusan Dalam 1 No. 40\",\n            \"restaurant_id\": \"4\",\n            \"created_at\": \"2023-06-11T07:19:14.875Z\"\n        },\n        {\n            \"id\": 3,\n            \"customer_id\": \"2\",\n            \"address\": \"068 Hane Port, Apt. 188, 16304-8575, East Madonna, Maine, United States\",\n            \"restaurant_id\": \"5\",\n            \"created_at\": \"2023-06-11T08:17:52.770Z\"\n        },\n        {\n            \"id\": 4,\n            \"customer_id\": \"1\",\n            \"address\": \"Jl. Bogor Raya, Jakarta Timur\",\n            \"restaurant_id\": \"6\",\n            \"created_at\": \"2023-06-11T08:28:49.341Z\"\n        }\n    ]\n}"}],"_postman_id":"662f8a3c-af55-48ee-a740-9cc9c1a1b8d9"},{"name":"Get order by ID","id":"031ad6b1-5863-4b23-8f47-b68495fa40bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/orders/50","urlObject":{"protocol":"http","port":"4000","path":["api","orders","50"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"430812c1-2089-4330-aa35-0e7639c3785f","name":"Get order by ID","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/orders/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"775"},{"key":"ETag","value":"W/\"307-YGnWhuIqHBXXr8ui8WiJRldpCAo\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:52:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Query orders successful, order found\",\n    \"data\": {\n        \"customer_id\": 1,\n        \"restaurant_id\": 4,\n        \"restaurant_name\": \"Shake Shack\",\n        \"created_at\": \"2023-06-11T07:19:14.875Z\",\n        \"address\": \"Jl. Kebagusan Dalam 1 No. 40\",\n        \"total_price\": 36.95,\n        \"items\": [\n            {\n                \"menu_id\": 5,\n                \"name\": \"ShackBurger\",\n                \"quantity\": 3,\n                \"price\": 8.99,\n                \"type\": \"Food\",\n                \"image\": \"https://theeburgerdude.com/wp-content/uploads/2023/03/Shake-Shack-Blog-3-scaled-735x735.jpg\",\n                \"description\": \"Juicy beef patty topped with cheese, lettuce, tomato, and ShackSauce.\"\n            },\n            {\n                \"menu_id\": 6,\n                \"name\": \"Vanilla Milkshake\",\n                \"quantity\": 2,\n                \"price\": 4.99,\n                \"type\": \"Beverage\",\n                \"image\": \"https://topsecretrecipes.com/var/images/product/430.430/shake-shack-vanilla-milkshake-copycat-recipe_1.jpg\",\n                \"description\": \"Creamy and rich vanilla-flavored milkshake.\"\n            }\n        ]\n    }\n}"}],"_postman_id":"031ad6b1-5863-4b23-8f47-b68495fa40bb"},{"name":"Delete order by ID","id":"550d424c-2cfe-4e16-9aae-2ce3060d81e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/orders/3","urlObject":{"protocol":"http","port":"4000","path":["api","orders","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"550d424c-2cfe-4e16-9aae-2ce3060d81e7"},{"name":"Create new order","id":"81896713-af4b-4c55-b5ab-6e6427679b5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"customer_id\": \"1\",\r\n  \"restaurant_id\": \"1\",\r\n  \"items\": [\r\n    {\r\n      \"menu_id\": \"1\",\r\n      \"quantity\": 2\r\n    },\r\n    {\r\n      \"menu_id\": \"2\",\r\n      \"quantity\": 2\r\n    }\r\n  ],\r\n  \"address\": \"Jalan Depok Raya, Depok\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/orders","urlObject":{"protocol":"http","port":"4000","path":["api","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b77477fb-f850-4f47-abfb-ee655e245d36","name":"Create new order","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"customer_id\": \"1\",\r\n  \"restaurant_id\": \"1\",\r\n  \"items\": [\r\n    {\r\n      \"menu_id\": \"1\",\r\n      \"quantity\": 2\r\n    },\r\n    {\r\n      \"menu_id\": \"2\",\r\n      \"quantity\": 2\r\n    }\r\n  ],\r\n  \"address\": \"Jalan Depok Raya, Depok\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/orders"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"745"},{"key":"ETag","value":"W/\"2e9-hKWuxuYwKR0iSXgXkJF7i7c1TnI\""},{"key":"Date","value":"Sun, 11 Jun 2023 16:27:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Order created successfully\",\n    \"data\": {\n        \"customer_id\": 1,\n        \"restaurant_id\": 1,\n        \"restaurant_name\": \"KFC\",\n        \"created_at\": \"2023-06-11T09:27:33.108Z\",\n        \"address\": \"Jalan Depok Raya, Depok\",\n        \"total_price\": 27.96,\n        \"items\": [\n            {\n                \"menu_id\": 1,\n                \"name\": \"Original Recipe Chicken\",\n                \"quantity\": 2,\n                \"price\": 9.99,\n                \"type\": \"Food\",\n                \"image\": \"https://images.ctfassets.net/9tka4b3550oc/1FQSRLVXt2Q1lvXXkOyW6U/f306561ef7bfc5ab7c84a739a46d3629/Food_09.png?q=75&w=1280\",\n                \"description\": \"Crispy and flavorful fried chicken.\"\n            },\n            {\n                \"menu_id\": 2,\n                \"name\": \"Mashed Potatoes with Gravy\",\n                \"quantity\": 2,\n                \"price\": 3.99,\n                \"type\": \"Food\",\n                \"image\": \"https://i.ytimg.com/vi/KI2Ff-DO2pg/maxresdefault.jpg\",\n                \"description\": \"Creamy mashed potatoes served with savory gravy.\"\n            }\n        ],\n        \"customer_balance\": \"1138.27\"\n    }\n}"}],"_postman_id":"81896713-af4b-4c55-b5ab-6e6427679b5d"},{"name":"Get order by Customer ID","id":"5a08e819-62a5-4cdb-b5cc-2cc9de992ec5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/orders?customerId=1","urlObject":{"protocol":"http","port":"4000","path":["api","orders"],"host":["localhost"],"query":[{"key":"customerId","value":"1"}],"variable":[]}},"response":[{"id":"291d6017-891d-4bbe-8e3b-8ad7833cf907","name":"Get order by Customer ID","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:4000/api/orders?customerId=1","protocol":"http","host":["localhost"],"port":"4000","path":["api","orders"],"query":[{"key":"customerId","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3243"},{"key":"ETag","value":"W/\"cab-bX0fIPhqFcJF7VgOtszmeGF+w7k\""},{"key":"Date","value":"Sun, 11 Jun 2023 16:15:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Query orders successful, orders found\",\n    \"data\": {\n        \"customer_id\": \"1\",\n        \"total_orders\": 7,\n        \"total_spent\": 107.79,\n        \"orders\": [\n            {\n                \"order_id\": 7,\n                \"restaurant_id\": 9,\n                \"restaurant_name\": \"Dunkin Donuts\",\n                \"restaurant_image\": \"https://seeklogo.com/images/D/dunkin-donuts-logo-1E269BA8F1-seeklogo.com.png\",\n                \"created_at\": \"2023-06-11T09:09:06.983Z\",\n                \"address\": \"Jl. Bogor, Bogor Timur\",\n                \"total_price\": 7.47,\n                \"items\": [\n                    {\n                        \"menu_id\": 18,\n                        \"name\": \"Coffee\",\n                        \"quantity\": 3,\n                        \"price\": 2.49,\n                        \"type\": \"Beverage\",\n                        \"image\": \"https://media-cldnry.s-nbcnews.com/image/upload/rockcms/2023-04/dunkin-fan-favorite-coffee-flavor-zz-230413-e5d190.jpg\",\n                        \"description\": \"Freshly brewed coffee in various flavors\"\n                    }\n                ]\n            },\n            {\n                \"order_id\": 6,\n                \"restaurant_id\": 8,\n                \"restaurant_name\": \"Subway\",\n                \"restaurant_image\": \"https://d26eb5y2jukpbz.cloudfront.net/ebs/archive/2019/media/OS_DE19085M_11.jpg\",\n                \"created_at\": \"2023-06-11T09:06:59.163Z\",\n                \"address\": \"Jl. Kebagusan Dalam 1\",\n                \"total_price\": 20.97,\n                \"items\": [\n                    {\n                        \"menu_id\": 15,\n                        \"name\": \"Italian BMT\",\n                        \"quantity\": 3,\n                        \"price\": 6.99,\n                        \"type\": \"Food\",\n                        \"image\": \"https://www.subway.co.id/wp-content/uploads/2021/08/Italian-BMT-Front.png\",\n                        \"description\": \"Salami, pepperoni, and ham with veggies\"\n                    }\n                ]\n            },\n            {\n                \"order_id\": 4,\n                \"restaurant_id\": 6,\n                \"restaurant_name\": \"McDonalds\",\n                \"restaurant_image\": \"https://logos-download.com/wp-content/uploads/2016/03/McDonalds_France_Logo_2003.png\",\n                \"created_at\": \"2023-06-11T08:28:49.341Z\",\n                \"address\": \"Jl. Bogor Raya, Jakarta Timur\",\n                \"total_price\": 24.95,\n                \"items\": [\n                    {\n                        \"menu_id\": 11,\n                        \"name\": \"Big Mac\",\n                        \"quantity\": 5,\n                        \"price\": 4.99,\n                        \"type\": \"Food\",\n                        \"image\": \"https://s7d1.scene7.com/is/image/mcdonalds/DC_201907_0005_BigMac_832x472:1-3-product-tile-desktop?wid=765&hei=472&dpr=off\",\n                        \"description\": \"Signature burger with two all-beef patties\"\n                    }\n                ]\n            },\n            {\n                \"order_id\": 2,\n                \"restaurant_id\": 4,\n                \"restaurant_name\": \"Shake Shack\",\n                \"restaurant_image\": \"https://companieslogo.com/img/orig/SHAK-3a2893f1.png\",\n                \"created_at\": \"2023-06-11T07:19:14.875Z\",\n                \"address\": \"Jl. Kebagusan Dalam 1 No. 40\",\n                \"total_price\": 36.95,\n                \"items\": [\n                    {\n                        \"menu_id\": 6,\n                        \"name\": \"Vanilla Milkshake\",\n                        \"quantity\": 2,\n                        \"price\": 4.99,\n                        \"type\": \"Beverage\",\n                        \"image\": \"https://topsecretrecipes.com/var/images/product/430.430/shake-shack-vanilla-milkshake-copycat-recipe_1.jpg\",\n                        \"description\": \"Creamy and rich vanilla-flavored milkshake.\"\n                    },\n                    {\n                        \"menu_id\": 5,\n                        \"name\": \"ShackBurger\",\n                        \"quantity\": 3,\n                        \"price\": 8.99,\n                        \"type\": \"Food\",\n                        \"image\": \"https://theeburgerdude.com/wp-content/uploads/2023/03/Shake-Shack-Blog-3-scaled-735x735.jpg\",\n                        \"description\": \"Juicy beef patty topped with cheese, lettuce, tomato, and ShackSauce.\"\n                    }\n                ]\n            },\n            {\n                \"order_id\": 1,\n                \"restaurant_id\": 3,\n                \"restaurant_name\": \"Chick-fil-A\",\n                \"restaurant_image\": \"https://d1yjjnpx0p53s8.cloudfront.net/styles/logo-thumbnail/s3/042013/chick-fil-a.png\",\n                \"created_at\": \"2023-06-10T22:09:01.232Z\",\n                \"address\": \"Jl. Kebagusan Dalam 1 No. 40\",\n                \"total_price\": 17.45,\n                \"items\": [\n                    {\n                        \"menu_id\": 9,\n                        \"name\": \"Chicken Sandwich\",\n                        \"quantity\": 2,\n                        \"price\": 4.99,\n                        \"type\": \"Food\",\n                        \"image\": \"https://www.cfacdn.com/img/order/menu/Online/Entrees/CFASpicySandwich_1080.png\",\n                        \"description\": \"A tender chicken breast filet served on a toasted bun.\"\n                    },\n                    {\n                        \"menu_id\": 10,\n                        \"name\": \"Waffle Fries\",\n                        \"quantity\": 3,\n                        \"price\": 2.49,\n                        \"type\": \"Food\",\n                        \"image\": \"https://www.cfacdn.com/img/order/menu/Online/Sides%26treats/Small_Lowered_1217shoot_1080x1080.png\",\n                        \"description\": \"Crispy waffle-cut fries seasoned to perfection.\"\n                    }\n                ]\n            }\n        ]\n    }\n}"}],"_postman_id":"5a08e819-62a5-4cdb-b5cc-2cc9de992ec5"}],"id":"ba27849a-433b-4dbb-95d8-971c60f5c8c9","_postman_id":"ba27849a-433b-4dbb-95d8-971c60f5c8c9","description":""},{"name":"Menu Item","item":[{"name":"Get all menu items","id":"33444ef4-fb52-49c4-8ea8-ff67b1bd39c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/menu-items","urlObject":{"protocol":"http","port":"4000","path":["api","menu-items"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"307b98ed-dd02-4a1d-a9c3-bbd345ab8413","name":"Get all menu items","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/menu-items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"4629"},{"key":"ETag","value":"W/\"1215-PKu1n2bV5jSdjcHDaq0M6bzhm0U\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:52:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"restaurant_id\": \"1\",\n            \"image\": \"https://images.ctfassets.net/9tka4b3550oc/1FQSRLVXt2Q1lvXXkOyW6U/f306561ef7bfc5ab7c84a739a46d3629/Food_09.png?q=75&w=1280\",\n            \"type\": \"Food\",\n            \"price\": \"9.99\",\n            \"name\": \"Original Recipe Chicken\",\n            \"description\": \"Crispy and flavorful fried chicken.\"\n        },\n        {\n            \"id\": 2,\n            \"restaurant_id\": \"1\",\n            \"image\": \"https://i.ytimg.com/vi/KI2Ff-DO2pg/maxresdefault.jpg\",\n            \"type\": \"Food\",\n            \"price\": \"3.99\",\n            \"name\": \"Mashed Potatoes with Gravy\",\n            \"description\": \"Creamy mashed potatoes served with savory gravy.\"\n        },\n        {\n            \"id\": 3,\n            \"restaurant_id\": \"2\",\n            \"image\": \"https://www.taco-bell.ro/wp-content/uploads/crunchy-taco-540x274.png\",\n            \"type\": \"Food\",\n            \"price\": \"2.99\",\n            \"name\": \"Crunchy Taco\",\n            \"description\": \"A classic taco with a crispy shell and seasoned beef filling.\"\n        },\n        {\n            \"id\": 4,\n            \"restaurant_id\": \"2\",\n            \"image\": \"https://dinnerthendessert.com/wp-content/uploads/2020/07/Taco-Bell-Bean-Burrito-1x1-1.jpg\",\n            \"type\": \"Food\",\n            \"price\": \"5.99\",\n            \"name\": \"Bean Burrito\",\n            \"description\": \"A flavorful burrito filled with seasoned beans and cheese.\"\n        },\n        {\n            \"id\": 5,\n            \"restaurant_id\": \"4\",\n            \"image\": \"https://theeburgerdude.com/wp-content/uploads/2023/03/Shake-Shack-Blog-3-scaled-735x735.jpg\",\n            \"type\": \"Food\",\n            \"price\": \"8.99\",\n            \"name\": \"ShackBurger\",\n            \"description\": \"Juicy beef patty topped with cheese, lettuce, tomato, and ShackSauce.\"\n        },\n        {\n            \"id\": 6,\n            \"restaurant_id\": \"4\",\n            \"image\": \"https://topsecretrecipes.com/var/images/product/430.430/shake-shack-vanilla-milkshake-copycat-recipe_1.jpg\",\n            \"type\": \"Beverage\",\n            \"price\": \"4.99\",\n            \"name\": \"Vanilla Milkshake\",\n            \"description\": \"Creamy and rich vanilla-flavored milkshake.\"\n        },\n        {\n            \"id\": 7,\n            \"restaurant_id\": \"5\",\n            \"image\": \"https://www.dominos.com.au/ManagedAssets/AU/product/P016/AU_P016_en_hero_11800.gif?v-593160113\",\n            \"type\": \"Food\",\n            \"price\": \"12.99\",\n            \"name\": \"Pepperoni Pizza\",\n            \"description\": \"Classic pizza topped with pepperoni slices.\"\n        },\n        {\n            \"id\": 8,\n            \"restaurant_id\": \"5\",\n            \"image\": \"https://www.plainchicken.com/wp-content/uploads/2020/03/copycat+dominos+parmesan+bread+twists+font-427x375.jpg\",\n            \"type\": \"Food\",\n            \"price\": \"6.99\",\n            \"name\": \"Garlic Parmesan Breadsticks\",\n            \"description\": \"Breadsticks baked to perfection with a flavorful garlic and Parmesan coating.\"\n        },\n        {\n            \"id\": 9,\n            \"restaurant_id\": \"3\",\n            \"image\": \"https://www.cfacdn.com/img/order/menu/Online/Entrees/CFASpicySandwich_1080.png\",\n            \"type\": \"Food\",\n            \"price\": \"4.99\",\n            \"name\": \"Chicken Sandwich\",\n            \"description\": \"A tender chicken breast filet served on a toasted bun.\"\n        },\n        {\n            \"id\": 10,\n            \"restaurant_id\": \"3\",\n            \"image\": \"https://www.cfacdn.com/img/order/menu/Online/Sides%26treats/Small_Lowered_1217shoot_1080x1080.png\",\n            \"type\": \"Food\",\n            \"price\": \"2.49\",\n            \"name\": \"Waffle Fries\",\n            \"description\": \"Crispy waffle-cut fries seasoned to perfection.\"\n        },\n        {\n            \"id\": 11,\n            \"restaurant_id\": \"6\",\n            \"image\": \"https://s7d1.scene7.com/is/image/mcdonalds/DC_201907_0005_BigMac_832x472:1-3-product-tile-desktop?wid=765&hei=472&dpr=off\",\n            \"type\": \"Food\",\n            \"price\": \"4.99\",\n            \"name\": \"Big Mac\",\n            \"description\": \"Signature burger with two all-beef patties\"\n        },\n        {\n            \"id\": 12,\n            \"restaurant_id\": \"6\",\n            \"image\": \"https://s7d1.scene7.com/is/image/mcdonalds/DC_201909_4314_McChicken_832x472:1-3-product-tile-desktop?wid=765&hei=472&dpr=off\",\n            \"type\": \"Food\",\n            \"price\": \"3.99\",\n            \"name\": \"McChicken\",\n            \"description\": \"Crispy chicken patty with lettuce and mayo\"\n        },\n        {\n            \"id\": 13,\n            \"restaurant_id\": \"7\",\n            \"image\": \"https://globalassets.starbucks.com/assets/58db701349cb48738069e8c912e2b3ac.jpg?impolicy=1by1_wide_topcrop_630\",\n            \"type\": \"Beverage\",\n            \"price\": \"4.49\",\n            \"name\": \"Caramel Macchiato\",\n            \"description\": \"Espresso with caramel and steamed milk\"\n        },\n        {\n            \"id\": 14,\n            \"restaurant_id\": \"7\",\n            \"image\": \"https://www.digitalassets.starbucks.eu/sites/starbucks-medialibrary/files/Caramel-Frappuccino_0.jpeg\",\n            \"type\": \"Beverage\",\n            \"price\": \"5.99\",\n            \"name\": \"Frappuccino\",\n            \"description\": \"Blended coffee beverage with various flavors\"\n        },\n        {\n            \"id\": 15,\n            \"restaurant_id\": \"8\",\n            \"image\": \"https://www.subway.co.id/wp-content/uploads/2021/08/Italian-BMT-Front.png\",\n            \"type\": \"Food\",\n            \"price\": \"6.99\",\n            \"name\": \"Italian BMT\",\n            \"description\": \"Salami, pepperoni, and ham with veggies\"\n        },\n        {\n            \"id\": 16,\n            \"restaurant_id\": \"8\",\n            \"image\": \"https://www.subway.co.id/wp-content/uploads/2021/08/tuna-front.png\",\n            \"type\": \"Food\",\n            \"price\": \"5.99\",\n            \"name\": \"Tuna Sub\",\n            \"description\": \"Flaked tuna mixed with mayo and veggies\"\n        },\n        {\n            \"id\": 17,\n            \"restaurant_id\": \"9\",\n            \"image\": \"https://www.eatthis.com/wp-content/uploads/sites/4//media/images/ext/150960794/glazed-donut-box.jpg?quality=82&strip=1\",\n            \"type\": \"Food\",\n            \"price\": \"0.99\",\n            \"name\": \"Glazed Donut\",\n            \"description\": \"Classic donut with a sugar glaze\"\n        },\n        {\n            \"id\": 18,\n            \"restaurant_id\": \"9\",\n            \"image\": \"https://media-cldnry.s-nbcnews.com/image/upload/rockcms/2023-04/dunkin-fan-favorite-coffee-flavor-zz-230413-e5d190.jpg\",\n            \"type\": \"Beverage\",\n            \"price\": \"2.49\",\n            \"name\": \"Coffee\",\n            \"description\": \"Freshly brewed coffee in various flavors\"\n        }\n    ]\n}"}],"_postman_id":"33444ef4-fb52-49c4-8ea8-ff67b1bd39c3"},{"name":"Get menu item by ID","id":"96bbb3a6-a485-48cf-a52b-5feda90a0321","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"b80650eb-d910-4c2a-9f13-a7a51a1c6b5c","name":"Get menu item by ID","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/menu-items/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"310"},{"key":"ETag","value":"W/\"136-WFwzb+Fm5DuXAN0oE6M88k9AtL8\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:52:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"data\": {\n        \"id\": 1,\n        \"restaurant_id\": \"1\",\n        \"image\": \"https://images.ctfassets.net/9tka4b3550oc/1FQSRLVXt2Q1lvXXkOyW6U/f306561ef7bfc5ab7c84a739a46d3629/Food_09.png?q=75&w=1280\",\n        \"type\": \"Food\",\n        \"price\": \"9.99\",\n        \"name\": \"Original Recipe Chicken\",\n        \"description\": \"Crispy and flavorful fried chicken.\"\n    }\n}"}],"_postman_id":"96bbb3a6-a485-48cf-a52b-5feda90a0321"},{"name":"Get menu from a Restaurant","id":"13d87bfe-a085-4630-85ad-e13c7d3c5274","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/menu-items?restaurantId=1","urlObject":{"protocol":"http","port":"4000","path":["api","menu-items"],"host":["localhost"],"query":[{"key":"restaurantId","value":"1"}],"variable":[]}},"response":[{"id":"20f0a9ac-a48f-41e3-8e40-40e93b3cb228","name":"Get menu from a Restaurant","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:4000/api/menu-items?restaurantId=1","protocol":"http","host":["localhost"],"port":"4000","path":["api","menu-items"],"query":[{"key":"restaurantId","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"573"},{"key":"ETag","value":"W/\"23d-QrAN0+EEQVKAlh9E/lXoI3b7NGg\""},{"key":"Date","value":"Sun, 11 Jun 2023 15:52:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"menu_items with restaurant id: 1 found!\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"restaurant_id\": \"1\",\n            \"image\": \"https://images.ctfassets.net/9tka4b3550oc/1FQSRLVXt2Q1lvXXkOyW6U/f306561ef7bfc5ab7c84a739a46d3629/Food_09.png?q=75&w=1280\",\n            \"type\": \"Food\",\n            \"price\": \"9.99\",\n            \"name\": \"Original Recipe Chicken\",\n            \"description\": \"Crispy and flavorful fried chicken.\"\n        },\n        {\n            \"id\": 2,\n            \"restaurant_id\": \"1\",\n            \"image\": \"https://i.ytimg.com/vi/KI2Ff-DO2pg/maxresdefault.jpg\",\n            \"type\": \"Food\",\n            \"price\": \"3.99\",\n            \"name\": \"Mashed Potatoes with Gravy\",\n            \"description\": \"Creamy mashed potatoes served with savory gravy.\"\n        }\n    ]\n}"}],"_postman_id":"13d87bfe-a085-4630-85ad-e13c7d3c5274"},{"name":"Create a new menu item","id":"d379b5fc-670e-4b63-8a02-e72be8e62d56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"susu.jpg","type":"text"},{"key":"type","value":"Beverage","type":"text"},{"key":"price","value":"1.50","type":"text"},{"key":"name","value":"Susu manis","type":"text"},{"key":"description","value":"Manis sekali susunya!","type":"text"},{"key":"restaurant_id","value":"1","type":"text"}]},"url":"http://localhost:4000/api/menu-items","urlObject":{"protocol":"http","port":"4000","path":["api","menu-items"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9164ce3f-2ad4-45a5-8eae-8cf4ae33d9e8","name":"Create a new menu item","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"susu.jpg","type":"text"},{"key":"type","value":"Beverage","type":"text"},{"key":"price","value":"1.50","type":"text"},{"key":"name","value":"Susu manis","type":"text"},{"key":"description","value":"Manis sekali susunya!","type":"text"},{"key":"restaurant_id","value":"1","type":"text"}]},"url":"http://localhost:4000/api/menu-items"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"210"},{"key":"ETag","value":"W/\"d2-qx2BTFpKVO4ZInuEZ/ARRgTyWVU\""},{"key":"Date","value":"Sun, 11 Jun 2023 16:02:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Insertion to menu_items successful:\",\n    \"data\": {\n        \"id\": 19,\n        \"restaurant_id\": \"1\",\n        \"image\": \"susu.jpg\",\n        \"type\": \"Beverage\",\n        \"price\": \"1.50\",\n        \"name\": \"Susu manis\",\n        \"description\": \"Manis sekali susunya!\"\n    }\n}"}],"_postman_id":"d379b5fc-670e-4b63-8a02-e72be8e62d56"},{"name":"Delete menu item by ID","id":"a50f2023-295f-4161-a7b4-89bf07542593","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/menu-items/20","urlObject":{"protocol":"http","port":"4000","path":["api","menu-items","20"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3f5534ba-75dc-4a8d-8a9b-8af66341d2f0","name":"Delete menu item by ID","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/menu-items/19"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"175"},{"key":"ETag","value":"W/\"af-Y5VhLp0vEnkCf3NHbkUeW7CD6W8\""},{"key":"Date","value":"Sun, 11 Jun 2023 16:03:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"data\": {\n        \"id\": 19,\n        \"restaurant_id\": \"1\",\n        \"image\": \"susu.jpg\",\n        \"type\": \"Beverage\",\n        \"price\": \"1.50\",\n        \"name\": \"Susu manis\",\n        \"description\": \"Manis sekali susunya!\"\n    }\n}"}],"_postman_id":"a50f2023-295f-4161-a7b4-89bf07542593"}],"id":"63e52c69-40a8-47b5-9d76-27eca894b928","_postman_id":"63e52c69-40a8-47b5-9d76-27eca894b928","description":""}]}