{"info":{"_postman_id":"12f1ea89-7d1f-42fc-9194-c4f9d9d66898","name":"Food App","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>Welcome to Food App's API!\nThis is the API documentation to serve a Food App created by my teammates and I. Visit  <a href=\"http://pc-food.netlify.app/\">http://pc-food.netlify.app/</a></p>\n<p>My teammates were in charge on the frontend while I contributed for the backend codes <a href=\"https://github.com/chuichin/foodapp\">https://github.com/chuichin/foodapp</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"}],"owner":"15396902","collectionId":"12f1ea89-7d1f-42fc-9194-c4f9d9d66898","publishedId":"TzJuBdRA","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-04-21T04:02:09.000Z"},"item":[{"name":"Users","item":[{"name":"/users/new","id":"a7f1ae08-49ed-484c-b7ac-42891d0af279","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"user1\",\r\n    \"password\": \"testing123\",\r\n    \"email\": \"user1@next.com\",\r\n    \"phone\": \"012303\",\r\n    \"profileImage\": \"https://pc-food-bucket.s3.ap-southeast-1.amazonaws.com/1619099339372\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/new","description":"<p>To allow new users to sign up with:</p>\n<ol>\n<li>username</li>\n<li>password</li>\n<li>email</li>\n</ol>\n","urlObject":{"protocol":"https","path":["api","v1","users","new"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"941973a6-8162-47df-b55b-1ce1487744c2","name":"Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"user10\",\r\n    \"password\": \"next123\",\r\n    \"email\": \"user10@next.com\",\r\n    \"phone\": \"012303\",\r\n    \"profileImage\": \"https://pc-food-bucket.s3.ap-southeast-1.amazonaws.com/1619099339372\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 04:02:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"549"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"auth-token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQ5NjE0NywianRpIjoiODIwZDRmMjItOWMwOS00OTFjLTgxYmQtMGI2NWY5M2M3MjFiIiwibmJmIjoxNjE5NDk2MTQ3LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidXNlcjEwIiwiZXhwIjoxNjE5NDk5NzQ3fQ.kAq6U5V7m4-yLmGsvUoOTl1AfJ9qm9hly1SKF9Sm10Y\",\n        \"message\": \"Successfully created a user and signed in\",\n        \"status\": \"success\",\n        \"user\": {\n            \"email\": \"user10@next.com\",\n            \"id\": 10,\n            \"phone\": \"012303\",\n            \"profileImage\": \"https://pc-food-bucket.s3.ap-southeast-1.amazonaws.com/1619099339372\",\n            \"username\": \"user10\"\n        }\n    }\n]"},{"id":"6c1680c7-bde6-430d-a80d-9d3d04f6e7f9","name":"Username exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"user1\",\r\n    \"password\": \"user1\",\r\n    \"email\": \"user1@next.com\",\r\n    \"phone\": 12303\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/new"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"65"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:05:20 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Username already exist\",\n    \"status\": \"failed\"\n}"},{"id":"ed97809b-8406-4924-adb8-c7aa0fb34e9c","name":"Email exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"user2\",\r\n    \"password\": \"user1\",\r\n    \"email\": \"user1@next.com\",\r\n    \"phone\": 12303\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/new"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"62"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:05:31 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Email already exist\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"a7f1ae08-49ed-484c-b7ac-42891d0af279"},{"name":"/users/login","id":"5bf931a7-5f16-451d-a004-c5eafd463620","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"user11next.com\",\r\n    \"password\": \"testing123\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/login","description":"<p>To allow users login</p>\n","urlObject":{"protocol":"https","path":["api","v1","users","login"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"23f336ef-bfaf-4368-8146-b15531db67da","name":"Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"user10@next.com\",\r\n    \"password\": \"next123\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 04:02:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"528"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"auth-token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQ5NjE3MCwianRpIjoiODVmYjIwNWMtNjgyNS00YjYwLWExODMtZTg2MWU2YmVkMzI4IiwibmJmIjoxNjE5NDk2MTcwLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidXNlcjEwIiwiZXhwIjoxNjE5NDk5NzcwfQ.hABuzbKbPi5437_XSv7FrBb2KOq2JSN-A6iSQQF7GxU\",\n    \"message\": \"successfully signed in\",\n    \"status\": \"success\",\n    \"user\": {\n        \"email\": \"user10@next.com\",\n        \"id\": 10,\n        \"phone\": \"012303\",\n        \"profileImage\": \"https://pc-food-bucket.s3.ap-southeast-1.amazonaws.com/1619099339372\",\n        \"username\": \"user10\"\n    }\n}"},{"id":"af38ffd8-add9-4c05-a627-98a587b448fd","name":"No information passed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/login"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"70"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:06:34 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Nothing is passed to log in\",\n    \"status\": \"Failed\"\n}"},{"id":"efde8c37-9c53-441d-9af9-090bdebc3c23","name":"Wrong password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"user1@next.com\",\r\n    \"password\": \"wrong\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/login"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:07:08 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Wrong password\",\n    \"status\": \"failed\"\n}"},{"id":"f7cb16b9-cfc6-4618-be42-687dd2f94aa1","name":"Account doesn't exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"user2@next.com\",\r\n    \"password\": \"user1\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/login"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"69"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:07:24 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This account doesn't exist\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"5bf931a7-5f16-451d-a004-c5eafd463620"},{"name":"/users/me [JWT]","id":"8aa23e61-a2e4-4473-8ef9-d5701a69a718","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM1NjI1OSwianRpIjoiNTg3Y2ZkOGQtNjU3OS00OGVhLThkYzQtYmE5YTExMzI0Njk0IiwibmJmIjoxNjE5MzU2MjU5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNTk4NTl9.Ngjf-j3Y3IgNfzbTXEKcmFqDyJz1imHDMwk3PA7jYQA","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/users/me","description":"<p>Return profile for the user that logged in</p>\n","urlObject":{"protocol":"https","path":["api","v1","users","me"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"05b9b66a-e173-4bec-a36a-fefdcb15891b","name":"Successful","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM1NjI1OSwianRpIjoiNTg3Y2ZkOGQtNjU3OS00OGVhLThkYzQtYmE5YTExMzI0Njk0IiwibmJmIjoxNjE5MzU2MjU5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNTk4NTl9.Ngjf-j3Y3IgNfzbTXEKcmFqDyJz1imHDMwk3PA7jYQA","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/users/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"162"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:18:15 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": 34,\n    \"createdAt\": \"Mon, 26 Apr 2021 23:17:41 GMT\",\n    \"email\": \"user1@next.com\",\n    \"name\": \"user1\",\n    \"phone\": \"012303\",\n    \"profileImage\": null\n}"},{"id":"2abf7b30-f9d4-4ccb-8ecf-57d1eebea383","name":"Account no longer exists","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM1NjI1OSwianRpIjoiNTg3Y2ZkOGQtNjU3OS00OGVhLThkYzQtYmE5YTExMzI0Njk0IiwibmJmIjoxNjE5MzU2MjU5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNTk4NTl9.Ngjf-j3Y3IgNfzbTXEKcmFqDyJz1imHDMwk3PA7jYQA","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/users/me"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"49"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:11:34 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This account no longer exists\"\n}"},{"id":"e7fa5235-eb07-4e66-9ae7-c40538ef69ca","name":"Chef's account","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM1NjI1OSwianRpIjoiNTg3Y2ZkOGQtNjU3OS00OGVhLThkYzQtYmE5YTExMzI0Njk0IiwibmJmIjoxNjE5MzU2MjU5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNTk4NTl9.Ngjf-j3Y3IgNfzbTXEKcmFqDyJz1imHDMwk3PA7jYQA","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/users/me"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"52"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:12:40 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This account is a Chef's account\"\n}"}],"_postman_id":"8aa23e61-a2e4-4473-8ef9-d5701a69a718"},{"name":"/users/","id":"dcd1d6d0-827a-4eff-ae1d-b6062c550f1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/users/","description":"<p>Return all existing users profile</p>\n","urlObject":{"protocol":"https","path":["api","v1","users",""],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"fb5a8675-c2aa-44a9-aa9c-ffbdf8d0d9de","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/users/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 03:30:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"264"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": 2,\n        \"createdAt\": \"Tue, 27 Apr 2021 03:00:47 GMT\",\n        \"email\": \"user1@next.com\",\n        \"name\": \"user1\",\n        \"phone\": \"012303\",\n        \"profileImage\": null\n    },\n    {\n        \"_id\": 3,\n        \"createdAt\": \"Tue, 27 Apr 2021 03:29:59 GMT\",\n        \"email\": \"user2@next.com\",\n        \"name\": \"user2\",\n        \"phone\": \"012303\",\n        \"profileImage\": null\n    }\n]"}],"_postman_id":"dcd1d6d0-827a-4eff-ae1d-b6062c550f1e"},{"name":"/users/<user_id>","id":"d01b1693-5027-4a0c-b997-4145399182c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/users/1","description":"<p>Return profile of a specific user based on userID</p>\n","urlObject":{"protocol":"https","path":["api","v1","users","1"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"4a35b4f8-89d1-48cf-a188-8d7417431896","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/users/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 02:50:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"198"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": 1,\n    \"createdAt\": \"Tue, 27 Apr 2021 02:42:08 GMT\",\n    \"email\": \"user1@next.com\",\n    \"name\": \"user1\",\n    \"phone\": \"012303\",\n    \"profileImage\": \"https://foodapp-new.s3-ap-southeast-1.amazonaws.com/users/1/pucca.png\"\n}"},{"id":"58dcc3bd-d31b-47b8-998d-023a6d974231","name":"User does not exist","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/users/20"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 02:59:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"52"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User does not exist\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"d01b1693-5027-4a0c-b997-4145399182c6"},{"name":"/users/check/username","id":"e8e2863c-1d9b-4932-aaa4-1891eef9e110","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"user1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/check/username","description":"<p>Check if username already exists</p>\n","urlObject":{"protocol":"https","path":["api","v1","users","check","username"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"b59112d5-dcae-40ca-baba-ad78f82d90e6","name":"Username taken","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"user1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/check/username"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 03:01:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Username already exist\",\n    \"username\": \"user1\"\n}"},{"id":"dcab36c4-67b9-48ab-b80e-919b426489b4","name":"Username not taken","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"new\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/check/username"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 03:01:54 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"73"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Username does not exist, you can use this\",\n    \"username\": \"new\"\n}"}],"_postman_id":"e8e2863c-1d9b-4932-aaa4-1891eef9e110"},{"name":"/users/check/email","id":"e6f6e739-92ad-436d-beb7-ac40bf5c6bb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"user1@next.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/check/email","description":"<p>Check if user's email already exist or not</p>\n","urlObject":{"protocol":"https","path":["api","v1","users","check","email"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"a6508865-4034-41f1-8c8e-2f752f097d17","name":"Email taken","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"user1@next.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/check/email"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 03:02:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"email\": \"user1@next.com\",\n    \"message\": \"Email already exist\"\n}"},{"id":"cc98f589-f35f-4ecb-897d-7981714f3a51","name":"Email does not exist","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"user12@next.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/check/email"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 03:03:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"79"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"email\": \"user12@next.com\",\n    \"message\": \"Email does not exist, you can use this\"\n}"},{"id":"ca3b4fc1-910a-4d8c-9cbf-b1fb0b3eeb08","name":"Nothing passed, no email","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/check/email"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 03:03:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"48"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No email passed\",\n    \"status\": \"Failed\"\n}"},{"id":"b29f8cee-64ee-49e8-81bd-23368f8bc77a","name":"Empty JSON","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/check/email"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 03:03:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"37"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Nothing passed in JSON\"\n}"}],"_postman_id":"e6f6e739-92ad-436d-beb7-ac40bf5c6bb9"},{"name":"/users/update/ [JWT]","id":"1b85b52f-1356-43a4-8169-9b9116914ee0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\" : \"user1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/update","description":"<p>Update user's details</p>\n","urlObject":{"protocol":"https","path":["api","v1","users","update"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"f3d96779-8474-4e65-9466-bb1211b195f6","name":"No fields passed","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0MTMwMCwianRpIjoiZTdmMDYyMDMtYjBhMS00OGUyLWE4MzYtMmQ3YWNiNDgzNGIyIiwibmJmIjoxNjE5MzQxMzAwLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNDQ5MDB9.uRPVqZmxLSdgPlrab333-EwAUHipkFoMdqoKw8zBdt4","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/update"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"63"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 14:23:21 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No fields are passed\",\n    \"status\": \"failed\"\n}"},{"id":"4b14bf7e-506a-4724-aed9-e885b18fe170","name":"Logged in as Chef","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0MTMwMCwianRpIjoiZTdmMDYyMDMtYjBhMS00OGUyLWE4MzYtMmQ3YWNiNDgzNGIyIiwibmJmIjoxNjE5MzQxMzAwLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNDQ5MDB9.uRPVqZmxLSdgPlrab333-EwAUHipkFoMdqoKw8zBdt4","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/update"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"84"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 14:24:06 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are logged in as chef instead of user\",\n    \"status\": \"failed\"\n}"},{"id":"8785fc02-9c90-4201-8eed-b7341b1ec531","name":"Successful","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0MTMwMCwianRpIjoiZTdmMDYyMDMtYjBhMS00OGUyLWE4MzYtMmQ3YWNiNDgzNGIyIiwibmJmIjoxNjE5MzQxMzAwLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNDQ5MDB9.uRPVqZmxLSdgPlrab333-EwAUHipkFoMdqoKw8zBdt4","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n    \"username\" : \"user1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/users/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 13:57:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"136"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"menu_id\": 22,\n    \"message\": \"Successfully updated\",\n    \"updated_at\": \"Tue, 27 Apr 2021 13:55:18 GMT\",\n    \"updated_column\": [\n        \"username\",\n        \"updated_at\"\n    ]\n}"}],"_postman_id":"1b85b52f-1356-43a4-8169-9b9116914ee0"},{"name":"/users/image [JWT]","id":"7ce997cf-b5aa-4daa-9074-c385c693ca1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"user_image","type":"file","src":"pucca.png"}]},"url":"https://foodapp2021.herokuapp.com/api/v1/users/image","description":"<p>User updates profile images</p>\n","urlObject":{"protocol":"https","path":["api","v1","users","image"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"9cb105af-244b-4a90-95e0-0423f7f56906","name":"Logged in as Chef, not User","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"user_image","type":"file","src":"giphy.gif"}]},"url":"https://foodapp2021.herokuapp.com/api/v1/users/image"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"49"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 14:26:13 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are not logged in as User\"\n}"},{"id":"db0afbe9-6b3e-4610-a478-90d64de05aac","name":"No images passed","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"user_image","type":"file","src":"pucca.png","disabled":true}]},"url":"https://foodapp2021.herokuapp.com/api/v1/users/image"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 14:29:05 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No images passed\",\n    \"status\": \"failed\"\n}"},{"id":"c3b91088-c9c4-4b66-8db6-af4c4462f202","name":"Successful","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"user_image","type":"file","src":"pucca.png"}]},"url":"https://foodapp2021.herokuapp.com/api/v1/users/image"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 13:57:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"150"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"image\": \"https://foodapp-new.s3-ap-southeast-1.amazonaws.com/users/22/pucca.png\",\n    \"message\": \"Successfully updated user's profile image\",\n    \"user_id\": 22\n}"}],"_postman_id":"7ce997cf-b5aa-4daa-9074-c385c693ca1e"},{"name":"/users/delete","id":"860e7499-44f1-43b7-9a78-e1fddd34beac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTMzMzAzNCwianRpIjoiMTY5MjRmNTItNmYyOS00YmU1LWJlMjQtNTUyM2Y4MmNhMDc0IiwibmJmIjoxNjE5MzMzMDM0LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzMzM5MzR9.qRrr0gTK42lgubgmAkhDwuxvCKgMGWMk2E4t1-I4p-s","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/users/delete","description":"<p>User can only delete their own account, not others.</p>\n","urlObject":{"protocol":"https","path":["api","v1","users","delete"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"e3728614-30dd-4e3e-bd24-fa28d1b92736","name":"Successful delete","originalRequest":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTMzMzAzNCwianRpIjoiMTY5MjRmNTItNmYyOS00YmU1LWJlMjQtNTUyM2Y4MmNhMDc0IiwibmJmIjoxNjE5MzMzMDM0LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzMzM5MzR9.qRrr0gTK42lgubgmAkhDwuxvCKgMGWMk2E4t1-I4p-s","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/users/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 02:56:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"76"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully deleted this user\",\n    \"status\": \"success\",\n    \"user_id\": 1\n}"},{"id":"80ff3799-e49c-4039-8590-14f5c4da3d61","name":"No longer exist","originalRequest":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTMzMzAzNCwianRpIjoiMTY5MjRmNTItNmYyOS00YmU1LWJlMjQtNTUyM2Y4MmNhMDc0IiwibmJmIjoxNjE5MzMzMDM0LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzMzM5MzR9.qRrr0gTK42lgubgmAkhDwuxvCKgMGWMk2E4t1-I4p-s","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/users/delete"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 02:56:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"71"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unable to delete, user no longer exist\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"860e7499-44f1-43b7-9a78-e1fddd34beac"}],"id":"dbb99d3f-c7f3-4dc4-bdba-fa44d01df2b9","_postman_id":"dbb99d3f-c7f3-4dc4-bdba-fa44d01df2b9","description":""},{"name":"Chefs","item":[{"name":"/chefs/new","id":"016494ed-08ba-4198-8b88-b9f170d71201","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\" : \"chef1\",\r\n    \"password\": \"testing123\",\r\n    \"email\" :\"chef1@next.com\",\r\n    \"phone\": \"+601234\",\r\n    \"profileImage\": \"https://pc-food-bucket.s3.ap-southeast-1.amazonaws.com/1619099339372\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/new","description":"<p>Create new chef account</p>\n","urlObject":{"protocol":"https","path":["api","v1","chefs","new"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"cc2aa486-81f1-423b-b903-0eee8e613e72","name":"Username taken","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\" : \"chef1\",\r\n    \"password\": \"chef1\",\r\n    \"email\" :\"chef@next.com\",\r\n    \"phone\": \"+601234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/new"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"65"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:20:50 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Username already exist\",\n    \"status\": \"failed\"\n}"},{"id":"c8a06e8f-f37b-4382-a635-40d94984e0ca","name":"Email taken","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\" : \"chef2\",\r\n    \"password\": \"chef1\",\r\n    \"email\" :\"chef@next.com\",\r\n    \"phone\": \"+601234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/new"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"62"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:20:59 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Email already exist\",\n    \"status\": \"failed\"\n}"},{"id":"73f643d3-557d-4d45-a9fd-652e2c507e10","name":"Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\" : \"chef4\",\r\n    \"password\": \"next123\",\r\n    \"email\" :\"chef4@next.com\",\r\n    \"phone\": \"+601234\",\r\n    \"profileImage\": \"https://pc-food-bucket.s3.ap-southeast-1.amazonaws.com/1619099339372\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 04:03:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"545"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"auth-token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQ5NjIzMSwianRpIjoiNWU2OWQzYzUtYjQ2MS00NDM1LTg2OWQtMzQ1MDk1MmQ4Njc4IiwibmJmIjoxNjE5NDk2MjMxLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiY2hlZjQiLCJleHAiOjE2MTk0OTk4MzF9.QhG7n9HCcRO2F9uZ7DlPbkyUwVopl3tcHMVDgQ7ikBY\",\n        \"message\": \"Successfully created a user and signed in\",\n        \"status\": \"success\",\n        \"user\": {\n            \"email\": \"chef4@next.com\",\n            \"id\": 7,\n            \"phone\": \"+601234\",\n            \"profileImage\": \"https://pc-food-bucket.s3.ap-southeast-1.amazonaws.com/1619099339372\",\n            \"username\": \"chef4\"\n        }\n    }\n]"}],"_postman_id":"016494ed-08ba-4198-8b88-b9f170d71201"},{"name":"/chefs/login","id":"8bfce8f8-e2ed-4fab-8018-9672d253f97c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" :\"michael@test.com\",\r\n    \"password\": \"testing123\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/login","description":"<p>Chefs to login to their account</p>\n","urlObject":{"protocol":"https","path":["api","v1","chefs","login"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"9b3e8559-02d4-4619-8aa1-340fdd328232","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" :\"chef@next.com\",\r\n    \"password\": \"chef1\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"432"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:22:52 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"auth-token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQ1MDU3MiwianRpIjoiYWEwZTgxMGUtMDI4Yi00MGNhLWIzNzEtNjA2OGViNjRjYzJiIiwibmJmIjoxNjE5NDUwNTcyLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiY2hlZjEiLCJleHAiOjE2MTk0NTQxNzJ9.hx-GwsYFG9RAFzc20LEnNjLDGec3GzMf6ENtRPMtrkA\",\n    \"message\": \"successfully signed in\",\n    \"status\": \"success\",\n    \"user\": {\n        \"id\": 21,\n        \"username\": \"chef1\"\n    }\n}"},{"id":"a55a41c2-a4dd-4809-8168-25144bdd92d7","name":"Empty request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/login"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"70"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:23:03 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Nothing is passed to log in\",\n    \"status\": \"Failed\"\n}"},{"id":"de79907b-392a-4c2b-aab8-3ea901c3a01f","name":"Wrong password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" :\"chef@next.com\",\r\n    \"password\": \"wrong\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/login"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:23:17 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Wrong password\",\n    \"status\": \"failed\"\n}"},{"id":"2b90d54a-9122-470c-86d4-1b85d106e7cd","name":"Account doesn't exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" :\"missing@next.com\",\r\n    \"password\": \"wrong\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/login"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"69"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:23:31 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This account doesn't exist\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"8bfce8f8-e2ed-4fab-8018-9672d253f97c"},{"name":"/chefs/","id":"679c18f6-f124-4da2-9af4-7f6262671846","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/","description":"<p>Return all the chefs' information</p>\n","urlObject":{"protocol":"https","path":["api","v1","chefs",""],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"1e96ffb9-cb36-4d22-ac99-c328ce757691","name":"No chefs yet","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"50"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:25:05 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are no chefs created yet\"\n}"},{"id":"c2a492f6-f1fc-4007-9c73-5cb23e8defd3","name":"Successful","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"291"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:26:13 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"_no_of_chefs\": 1,\n    \"_status\": \"success\",\n    \"results\": [\n        {\n            \"_id\": 22,\n            \"createdAt\": \"Mon, 26 Apr 2021 23:25:14 GMT\",\n            \"email\": \"chef@next.com\",\n            \"name\": \"chef2\",\n            \"phone\": \"+601234\",\n            \"profileImage\": null,\n            \"ratingAverage\": 0\n        }\n    ]\n}"}],"_postman_id":"679c18f6-f124-4da2-9af4-7f6262671846"},{"name":"/chefs/<chef_id>","id":"d6663bc8-d08d-42db-877b-7fcbdebd73c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/22","description":"<p>Return details or profile for chef</p>\n","urlObject":{"protocol":"https","path":["api","v1","chefs","22"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"ce9cdc68-d270-4723-99c2-5b64944c576e","name":"Bad request","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/10"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"62"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Fri, 23 Apr 2021 04:18:33 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User does not exist\",\n    \"status\": \"failed\"\n}"},{"id":"7e6a4f0a-12b5-4d57-ae11-62f429567c6a","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/22"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"248"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:27:40 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"_status\": \"success\",\n    \"chef_profile\": {\n        \"_id\": 22,\n        \"createdAt\": \"Mon, 26 Apr 2021 23:25:14 GMT\",\n        \"email\": \"chef@next.com\",\n        \"name\": \"chef2\",\n        \"phone\": \"+601234\",\n        \"profileImage\": null,\n        \"ratingAverage\": 0\n    }\n}"}],"_postman_id":"d6663bc8-d08d-42db-877b-7fcbdebd73c1"},{"name":"/chefs/me [JWT]","id":"48b7bb8c-af3b-4a30-b0a2-e031f8e17b0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM1NjkyMiwianRpIjoiNTdlM2Q3NWEtMzNkZC00ZGJmLWIwZTUtOTdmNzlmY2IyMzE5IiwibmJmIjoxNjE5MzU2OTIyLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNjA1MjJ9.r7IjUxAMC-iUAYFYqHns4ncMtli25XnIqmhegVrNOt0","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/me","description":"<p>Return profile of logged in Chef</p>\n","urlObject":{"protocol":"https","path":["api","v1","chefs","me"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"e5c6df7e-956e-45b4-9feb-121b09b78779","name":"Successful","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM1NjkyMiwianRpIjoiNTdlM2Q3NWEtMzNkZC00ZGJmLWIwZTUtOTdmNzlmY2IyMzE5IiwibmJmIjoxNjE5MzU2OTIyLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNjA1MjJ9.r7IjUxAMC-iUAYFYqHns4ncMtli25XnIqmhegVrNOt0","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"221"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:26:27 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": 22,\n    \"bio\": null,\n    \"createdAt\": \"Mon, 26 Apr 2021 23:25:14 GMT\",\n    \"email\": \"chef@next.com\",\n    \"name\": \"chef2\",\n    \"payment_info\": null,\n    \"phone\": \"+601234\",\n    \"price\": null,\n    \"profileImage\": null\n}"},{"id":"715dce33-2b0c-4744-a52f-28456c8e7781","name":"Logged in as User, not Chef","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM1NjkyMiwianRpIjoiNTdlM2Q3NWEtMzNkZC00ZGJmLWIwZTUtOTdmNzlmY2IyMzE5IiwibmJmIjoxNjE5MzU2OTIyLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNjA1MjJ9.r7IjUxAMC-iUAYFYqHns4ncMtli25XnIqmhegVrNOt0","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/me"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"55"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:27:00 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are logged in as chef, not user\"\n}"}],"_postman_id":"48b7bb8c-af3b-4a30-b0a2-e031f8e17b0d"},{"name":"/chefs/update [JWT]","id":"317870a3-8bb8-42bc-a727-e0d8a9f25889","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0MTUyNiwianRpIjoiMzljOWRhYjItNzc4NS00YTdlLWI3ZDQtYWI2YjI5Mjg0NDNhIiwibmJmIjoxNjE5MzQxNTI2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjpudWxsLCJleHAiOjE2MTkzNDI0MjZ9.9-nhaUieV0X1oUnJHpDHzWZAAfmI2BcPInfFG7nd10k","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"Chef Test\",\r\n    \"email\" : \"chef@new.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/update","description":"<p>Update chef's profile</p>\n","urlObject":{"protocol":"https","path":["api","v1","chefs","update"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"7d593c8f-f4b8-4660-ae96-79fd7708f8f1","name":"Successful","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0MTUyNiwianRpIjoiMzljOWRhYjItNzc4NS00YTdlLWI3ZDQtYWI2YjI5Mjg0NDNhIiwibmJmIjoxNjE5MzQxNTI2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjpudWxsLCJleHAiOjE2MTkzNDI0MjZ9.9-nhaUieV0X1oUnJHpDHzWZAAfmI2BcPInfFG7nd10k","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"Chef Test\",\r\n    \"email\" : \"chef@new.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"184"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:30:38 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"menu_id\": 22,\n    \"message\": \"Successfully updated\",\n    \"updated_at\": \"Mon, 26 Apr 2021 23:25:14 GMT\",\n    \"updated_column\": [\n        \"username\",\n        \"email\",\n        \"updated_at\"\n    ]\n}"},{"id":"bd34f36a-2dc2-4155-a167-59dcae5c335a","name":"No information passed","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0MTUyNiwianRpIjoiMzljOWRhYjItNzc4NS00YTdlLWI3ZDQtYWI2YjI5Mjg0NDNhIiwibmJmIjoxNjE5MzQxNTI2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjpudWxsLCJleHAiOjE2MTkzNDI0MjZ9.9-nhaUieV0X1oUnJHpDHzWZAAfmI2BcPInfFG7nd10k","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/update"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"63"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:30:54 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No fields are passed\",\n    \"status\": \"failed\"\n}"},{"id":"e617fbc7-bd03-46a6-9aef-7adaea4e57d9","name":"Logged in as user, not Chef","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0MTUyNiwianRpIjoiMzljOWRhYjItNzc4NS00YTdlLWI3ZDQtYWI2YjI5Mjg0NDNhIiwibmJmIjoxNjE5MzQxNTI2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjpudWxsLCJleHAiOjE2MTkzNDI0MjZ9.9-nhaUieV0X1oUnJHpDHzWZAAfmI2BcPInfFG7nd10k","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"Chef Test\",\r\n    \"email\" : \"chef@new.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/update"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"84"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:31:27 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are logged in as user instead of chef\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"317870a3-8bb8-42bc-a727-e0d8a9f25889"},{"name":"/chefs/image [JWT]","id":"7c1fba70-0793-4495-81fe-cf5b0726912c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQyNzgzOSwianRpIjoiMjJiNWUzODItODMzYi00NDdjLWE2MDUtZmExZmFjNGQ3ZjIxIiwibmJmIjoxNjE5NDI3ODM5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MzE0Mzl9.tFu5cjNHak5dGf4Lz_qutfXqVdQctzdytRbayBhYHrk","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"chef_image","type":"file","src":"17c00902c105445a5eeab7b27eef1664.jpg"}]},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/image","description":"<p>For chefs to upload their profile image</p>\n","urlObject":{"protocol":"https","path":["api","v1","chefs","image"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"4d685740-dbc8-4888-8051-647d0d9dbde2","name":"Success","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQyNzgzOSwianRpIjoiMjJiNWUzODItODMzYi00NDdjLWE2MDUtZmExZmFjNGQ3ZjIxIiwibmJmIjoxNjE5NDI3ODM5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MzE0Mzl9.tFu5cjNHak5dGf4Lz_qutfXqVdQctzdytRbayBhYHrk","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"chef_image","type":"file","src":"17c00902c105445a5eeab7b27eef1664.jpg"}]},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/image"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"193"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:37:28 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"image\": \"https://foodapp-new.s3-ap-southeast-1.amazonaws.com/chefs/23/17c00902c105445a5eeab7b27eef1664.jpg\",\n    \"message\": \"Successfully updated chefs's profile image\",\n    \"user_id\": 23\n}"},{"id":"afc49577-6824-40d5-bd95-94e69fd429a5","name":"No images passed","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQyNzgzOSwianRpIjoiMjJiNWUzODItODMzYi00NDdjLWE2MDUtZmExZmFjNGQ3ZjIxIiwibmJmIjoxNjE5NDI3ODM5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MzE0Mzl9.tFu5cjNHak5dGf4Lz_qutfXqVdQctzdytRbayBhYHrk","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"chef_image","type":"file","src":"17c00902c105445a5eeab7b27eef1664.jpg","disabled":true}]},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/image"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:49:51 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No images passed\",\n    \"status\": \"failed\"\n}"},{"id":"35a8af1e-8e7b-45ac-aee3-d3e733effa3c","name":"Not logged in as Chef","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQyNzgzOSwianRpIjoiMjJiNWUzODItODMzYi00NDdjLWE2MDUtZmExZmFjNGQ3ZjIxIiwibmJmIjoxNjE5NDI3ODM5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MzE0Mzl9.tFu5cjNHak5dGf4Lz_qutfXqVdQctzdytRbayBhYHrk","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"chef_image","type":"file","src":"17c00902c105445a5eeab7b27eef1664.jpg","disabled":true}]},"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/image"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"49"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:50:13 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are not logged in as Chef\"\n}"}],"_postman_id":"7c1fba70-0793-4495-81fe-cf5b0726912c"},{"name":"/chefs/delete [JWT]","id":"74429ee6-1f28-4cc4-a031-76d57931be9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0Mzc4OCwianRpIjoiY2RmMzczNmYtY2I4MC00ZTdiLWE3MDQtYjNiNGFhNWQ1YzIxIiwibmJmIjoxNjE5MzQzNzg4LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNDczODh9.4KE__pUqKLUp2WVkAJjs3Sqi-mlPOts0SIg5Phw0hHo","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/delete","description":"<p>Delete chef's account</p>\n","urlObject":{"protocol":"https","path":["api","v1","chefs","delete"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"bf8420ba-708c-488c-b524-d7ebaf19da2f","name":"Successful","originalRequest":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0Mzc4OCwianRpIjoiY2RmMzczNmYtY2I4MC00ZTdiLWE3MDQtYjNiNGFhNWQ1YzIxIiwibmJmIjoxNjE5MzQzNzg4LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNDczODh9.4KE__pUqKLUp2WVkAJjs3Sqi-mlPOts0SIg5Phw0hHo","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"92"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:52:02 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"chef_id\": 23,\n    \"message\": \"Successfully deleted this chef\",\n    \"status\": \"success\"\n}"},{"id":"d9b259e7-0b6d-4218-bdea-881c91ab8aee","name":"Account no longer exist","originalRequest":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0Mzc4OCwianRpIjoiY2RmMzczNmYtY2I4MC00ZTdiLWE3MDQtYjNiNGFhNWQ1YzIxIiwibmJmIjoxNjE5MzQzNzg4LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNDczODh9.4KE__pUqKLUp2WVkAJjs3Sqi-mlPOts0SIg5Phw0hHo","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/chefs/delete"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 15:52:09 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unable to delete, chef no longer exist\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"74429ee6-1f28-4cc4-a031-76d57931be9c"}],"id":"50288d3d-e253-41e4-9b6e-b6d9db718226","_postman_id":"50288d3d-e253-41e4-9b6e-b6d9db718226","description":""},{"name":"Food Categories","item":[{"name":"/food_categories/new/<chef_id>","id":"c9bae260-1011-4217-8496-e0b987e19b41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"category\": \"greek\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/food_categories/new/10","description":"<p>Create new record of food category depending on what the chef selects</p>\n","urlObject":{"protocol":"https","path":["api","v1","food_categories","new","10"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"f31f1191-4fa8-430f-913a-12e3157cd7c7","name":"Category exists for chef","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"category\": \"chinese\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/food_categories/new/10"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 07:16:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"94"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"category\": \"chinese\",\n    \"chef\": \"10\",\n    \"message\": \"This food category for this chef already exist\"\n}"},{"id":"d881660a-1d4c-4a09-9109-303298151cb4","name":"Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"category\": \"chinese\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/food_categories/new/11"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 07:16:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"109"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"category\": \"chinese\",\n    \"chef_id\": \"11\",\n    \"message\": \"Successfully create new category record\",\n    \"status\": \"Success\"\n}"}],"_postman_id":"c9bae260-1011-4217-8496-e0b987e19b41"},{"name":"/food_categories/<chef_id>","id":"bd285ed0-048a-49ed-beb6-081a03a44e51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/food_categories/24","description":"<p>Return  DISTINCT food categories that a chef specialises in</p>\n","urlObject":{"protocol":"https","path":["api","v1","food_categories","24"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"44ad4490-ac21-423c-8112-bb37af53bfd9","name":"Successful","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/food_categories/10"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 07:02:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"74"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"chef_id\": \"10\",\n    \"count\": 3,\n    \"food_category\": [\n        \"american\",\n        \"chinese\",\n        \"greek\"\n    ]\n}"},{"id":"33bfe5dd-643e-4b0f-be03-e3ffa7c193e5","name":"No food categories","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/food_categories/11"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 07:13:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[]"},{"id":"168eed53-74bf-4d34-a69c-05ecab50015c","name":"Chef doesn't exist","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/food_categories/5"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 07:13:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This chef does not exist\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"bd285ed0-048a-49ed-beb6-081a03a44e51"},{"name":"/food_categories/?category=<food_category>","id":"c48cc1dc-b16f-463b-a759-7ee994e93480","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/food_categories/?category=american","description":"<p>Returns list of chefs' ID bsed on selected food category</p>\n","urlObject":{"protocol":"https","path":["api","v1","food_categories",""],"host":["foodapp2021","herokuapp","com"],"query":[{"key":"category","value":"american"}],"variable":[]}},"response":[{"id":"b072c685-bfda-4d3f-b6c2-2a4a16582e22","name":"No results available","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://foodapp2021.herokuapp.com/api/v1/food_categories/?category=\"\"","protocol":"https","host":["foodapp2021","herokuapp","com"],"path":["api","v1","food_categories",""],"query":[{"key":"category","value":"\"\""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 06:04:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[]"},{"id":"bb450090-f87a-444a-83fd-1447ae126d07","name":"Successful","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://foodapp2021.herokuapp.com/api/v1/food_categories/?category=american","protocol":"https","host":["foodapp2021","herokuapp","com"],"path":["api","v1","food_categories",""],"query":[{"key":"category","value":"american"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 07:03:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"78"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"category\": \"american\",\n        \"chef_id\": [\n            10\n        ],\n        \"no_of_results\": 1,\n        \"status\": \"success\"\n    }\n]"}],"_postman_id":"c48cc1dc-b16f-463b-a759-7ee994e93480"},{"name":"/food_categories/delete/<food_category_id>","id":"010776c4-3488-4e40-b60e-3ac20034f2c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/food_categories/delete/9","description":"<p>Delete the food category previously submitted/created by chef</p>\n","urlObject":{"protocol":"https","path":["api","v1","food_categories","delete","9"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"3422bea0-9793-4457-acd6-350af692443e","name":"Successful delete","originalRequest":{"method":"DELETE","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/food_categories/delete/9"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"98"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 16:28:05 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"food_category_id\": \"9\",\n    \"message\": \"Deleted this food category\",\n    \"status\": \"success\"\n}"},{"id":"5a7bd8a7-8091-4e82-a549-577640f64e3e","name":"Bad request","originalRequest":{"method":"DELETE","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/food_categories/delete/50"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"69"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 16:28:32 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This record does not exist\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"010776c4-3488-4e40-b60e-3ac20034f2c6"}],"id":"a1b34771-e533-4b1b-a470-e14dbf2d66b7","_postman_id":"a1b34771-e533-4b1b-a470-e14dbf2d66b7","description":""},{"name":"Bookings","item":[{"name":"/bookings/new [JWT]","id":"756dbbda-06ed-4d37-9d43-9ba37626256b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0OTM5NCwianRpIjoiMGNiZGI1NjYtYjA2Yy00MWNkLTgxN2QtODk0ZmNmNzVkYzQ1IiwibmJmIjoxNjE5MzQ5Mzk0LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNTI5OTR9.hngeIKLUJtCgD-HM1I-xbRqaHF0k6g95lTN2FpG9Rgc","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"chef\": 24,\r\n    \"address\": \"PJ\",\r\n    \"service_type\": \"TBC\",\r\n    \"pax\": 3,\r\n    \"meal_type\": \"lunch\",\r\n    \"menu_type\": \"Western\",\r\n    \"hob_type\": \"electric\",\r\n    \"no_of_hob\": 2,\r\n    \"oven\": false,\r\n    \"price\": 50,\r\n    \"diet_restrictions\": false,\r\n    \"proposed_date\": \"today\",\r\n    \"message\": \"I want delicious food\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/new","description":"<p>User creates and submits new booking. Requires User to log in before create a new booking. </p>\n<p>Reject: Signed in as Chef</p>\n<p>Default inputs set in backend: </p>\n<ul>\n<li>completed: False</li>\n<li>payment: False</li>\n<li>confirmed: False</li>\n<li>active: True</li>\n<li>cancelled: False</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","bookings","new"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"3c46579b-43d0-4c6a-bbf3-c97b974fe640","name":"Logged in as Chef, not User","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0OTM5NCwianRpIjoiMGNiZGI1NjYtYjA2Yy00MWNkLTgxN2QtODk0ZmNmNzVkYzQ1IiwibmJmIjoxNjE5MzQ5Mzk0LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNTI5OTR9.hngeIKLUJtCgD-HM1I-xbRqaHF0k6g95lTN2FpG9Rgc","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"chef\": 4,\r\n    \"address\": \"PJ\",\r\n    \"service_type\": \"TBC\",\r\n    \"pax\": 3,\r\n    \"meal_type\": \"lunch\",\r\n    \"menu_type\": \"Western\",\r\n    \"hob_type\": \"electric\",\r\n    \"no_of_hob\": 2,\r\n    \"oven\": false,\r\n    \"price\": 50,\r\n    \"diet_restrictions\": \"vegetarian\",\r\n    \"proposed_date\": \"today\",\r\n    \"message\": \"I want delicious food\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/new"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"80"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 11:18:44 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are logged in as Chef, not User \",\n    \"status\": \"success\"\n}"},{"id":"546ee1f9-ce88-4d63-be7e-dbdeb737c4e0","name":"Successful","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0OTM5NCwianRpIjoiMGNiZGI1NjYtYjA2Yy00MWNkLTgxN2QtODk0ZmNmNzVkYzQ1IiwibmJmIjoxNjE5MzQ5Mzk0LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNTI5OTR9.hngeIKLUJtCgD-HM1I-xbRqaHF0k6g95lTN2FpG9Rgc","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"chef\": 24,\r\n    \"address\": \"PJ\",\r\n    \"service_type\": \"TBC\",\r\n    \"pax\": 3,\r\n    \"meal_type\": \"lunch\",\r\n    \"menu_type\": \"Western\",\r\n    \"hob_type\": \"electric\",\r\n    \"no_of_hob\": 2,\r\n    \"oven\": false,\r\n    \"price\": 50,\r\n    \"diet_restrictions\": false,\r\n    \"proposed_date\": \"today\",\r\n    \"message\": \"I want delicious food\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"249"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Tue, 27 Apr 2021 16:48:12 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"active\": true,\n    \"booking_id\": 36,\n    \"cancelled\": false,\n    \"chef_id\": 24,\n    \"completed\": false,\n    \"confirmed\": false,\n    \"message\": \"Successfully created new booking\",\n    \"payment_status\": false,\n    \"status\": \"success\",\n    \"user_id\": 42\n}"}],"_postman_id":"756dbbda-06ed-4d37-9d43-9ba37626256b"},{"name":"/bookings/<booking_id>","id":"8b32bd83-63fe-4256-b581-d70159af9363","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/34","description":"<p>Return details for a specific booking</p>\n","urlObject":{"protocol":"https","path":["api","v1","bookings","34"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"4f38bc8e-1397-44b2-8a5b-66f1160c55b8","name":"Bad request","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/5"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"70"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 13:37:13 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This booking does not exist\",\n    \"status\": \"Failed\"\n}"},{"id":"48314bc5-b115-4e32-bf90-d5daf6fd2f3a","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/34"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"485"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Tue, 27 Apr 2021 16:50:01 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"active\": true,\n    \"address\": \"PJ\",\n    \"booking_id\": 34,\n    \"cancelled\": false,\n    \"chef\": 24,\n    \"completed\": false,\n    \"confirmed\": false,\n    \"diet_restrictions\": true,\n    \"hob_type\": \"electric\",\n    \"meal_type\": \"lunch\",\n    \"menu_type\": \"Western\",\n    \"message\": \"I want delicious food\",\n    \"no_of_hob\": 2,\n    \"oven\": false,\n    \"pax\": \"3\",\n    \"payment_status\": true,\n    \"price\": 50,\n    \"proposed_date\": \"Tue, 27 Apr 2021 00:00:00 GMT\",\n    \"service_type\": \"TBC\",\n    \"user\": 41\n}"}],"_postman_id":"8b32bd83-63fe-4256-b581-d70159af9363"},{"name":"/bookings/chef [JWT]","id":"1ce12bf6-e42b-414b-87ff-6ff14e0bddad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef/24","description":"<p>Returns bookings for each chef</p>\n","urlObject":{"protocol":"https","path":["api","v1","bookings","chef","24"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"305e9722-8dbe-4a36-bfd1-6923847beb1e","name":"Empty","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 17:29:31 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"15"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": []\n}"},{"id":"11760c12-9a3f-4663-b1a6-cc5c8113f4d2","name":"Successful","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 17:34:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"428"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"results\": [\n        {\n            \"active\": true,\n            \"address\": \"PJ\",\n            \"booking_id\": 11,\n            \"cancelled\": false,\n            \"chef\": 5,\n            \"completed\": false,\n            \"confirmed\": false,\n            \"diet_restrictions\": false,\n            \"hob_type\": \"electric\",\n            \"meal_type\": \"lunch\",\n            \"menu_type\": \"Western\",\n            \"message\": \"I want delicious food\",\n            \"no_of_hob\": 2,\n            \"oven\": false,\n            \"pax\": \"3\",\n            \"payment_status\": false,\n            \"price\": 50,\n            \"proposed_date\": \"Tue, 27 Apr 2021 00:00:00 GMT\",\n            \"service_type\": \"TBC\",\n            \"user\": 5\n        }\n    ],\n    \"status\": \"success\"\n}"}],"_postman_id":"1ce12bf6-e42b-414b-87ff-6ff14e0bddad"},{"name":"/bookings/user [JWT]","id":"5086c928-7b44-4559-bdc0-7a0dd4b913c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/user","description":"<p>Return bookings for a specific user</p>\n","urlObject":{"protocol":"https","path":["api","v1","bookings","user"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"3e9cc947-700a-479d-ac25-6ead0d4dccb0","name":"Successful","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 17:26:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"427"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"results\": [\n        {\n            \"active\": true,\n            \"address\": \"PJ\",\n            \"booking_id\": 8,\n            \"cancelled\": false,\n            \"chef\": 3,\n            \"completed\": false,\n            \"confirmed\": false,\n            \"diet_restrictions\": false,\n            \"hob_type\": \"electric\",\n            \"meal_type\": \"lunch\",\n            \"menu_type\": \"Western\",\n            \"message\": \"I want delicious food\",\n            \"no_of_hob\": 2,\n            \"oven\": false,\n            \"pax\": \"3\",\n            \"payment_status\": false,\n            \"price\": 50,\n            \"proposed_date\": \"Tue, 27 Apr 2021 00:00:00 GMT\",\n            \"service_type\": \"TBC\",\n            \"user\": 4\n        }\n    ],\n    \"status\": \"success\"\n}"},{"id":"cc834fbf-d1d7-4dfe-9255-a2551d3ac561","name":"Empty","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 17:32:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"15"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": []\n}"}],"_postman_id":"5086c928-7b44-4559-bdc0-7a0dd4b913c4"},{"name":"/bookings/update/<booking_id> [JWT]","id":"1ab31e6a-9efc-4f9f-b80f-01a93af61d1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0ODgwNSwianRpIjoiOTBmNTcwN2MtNzhlZC00MWM2LWE4NGEtOGY0MTZjMTdmZmEwIiwibmJmIjoxNjE5MzQ4ODA1LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNTI0MDV9.vnybtbLwlRaQ6V59FtRKLPtJBmz0MPIQgtFEQ17Uezs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address\": \"Mont Kiara\",\r\n    \"service_type\": \"TBC\",\r\n    \"pax\": 3,\r\n    \"meal_type\": \"lunch\",\r\n    \"menu_type\": \"Western\",\r\n    \"hob_type\": \"electric\",\r\n    \"no_of_hob\": 2,\r\n    \"oven\": false,\r\n    \"price\": 50,\r\n    \"diet_restrictions\": true,\r\n    \"proposed_date\": \"today\",\r\n    \"message\": \"I want delicious food\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/update/34","description":"<p>USER updates specific booking details</p>\n","urlObject":{"protocol":"https","path":["api","v1","bookings","update","34"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"b2723a6c-d374-4fcb-9d74-fc2289d30f01","name":"Not logged in as User, but Chef","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0ODgwNSwianRpIjoiOTBmNTcwN2MtNzhlZC00MWM2LWE4NGEtOGY0MTZjMTdmZmEwIiwibmJmIjoxNjE5MzQ4ODA1LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNTI0MDV9.vnybtbLwlRaQ6V59FtRKLPtJBmz0MPIQgtFEQ17Uezs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address\": \"PJ\",\r\n    \"service_type\": \"TBC\",\r\n    \"pax\": 3,\r\n    \"meal_type\": \"lunch\",\r\n    \"menu_type\": \"Western\",\r\n    \"hob_type\": \"electric\",\r\n    \"no_of_hob\": 2,\r\n    \"oven\": false,\r\n    \"price\": 50,\r\n    \"diet_restrictions\": \"vegetarian\",\r\n    \"proposed_date\": \"today\",\r\n    \"message\": \"I want delicious food\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/update/20"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"108"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 11:07:16 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are logged in as Chef, not user. Only user can edit booking.\",\n    \"status\": \"success\"\n}"},{"id":"7e61b8f9-6a18-478c-a1f0-d146bb7f3028","name":"Booking doesn't exist","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0ODgwNSwianRpIjoiOTBmNTcwN2MtNzhlZC00MWM2LWE4NGEtOGY0MTZjMTdmZmEwIiwibmJmIjoxNjE5MzQ4ODA1LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNTI0MDV9.vnybtbLwlRaQ6V59FtRKLPtJBmz0MPIQgtFEQ17Uezs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address\": \"PJ\",\r\n    \"service_type\": \"TBC\",\r\n    \"pax\": 3,\r\n    \"meal_type\": \"lunch\",\r\n    \"menu_type\": \"Western\",\r\n    \"hob_type\": \"electric\",\r\n    \"no_of_hob\": 2,\r\n    \"oven\": false,\r\n    \"price\": 50,\r\n    \"diet_restrictions\": \"vegetarian\",\r\n    \"proposed_date\": \"today\",\r\n    \"message\": \"I want delicious food\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/update/20"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"69"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 11:07:54 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This booking doesn't exist\",\n    \"status\": \"failed\"\n}"},{"id":"990bd9e5-aaef-4fbe-834f-6b9280d4d89d","name":"No fields passed","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0ODgwNSwianRpIjoiOTBmNTcwN2MtNzhlZC00MWM2LWE4NGEtOGY0MTZjMTdmZmEwIiwibmJmIjoxNjE5MzQ4ODA1LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNTI0MDV9.vnybtbLwlRaQ6V59FtRKLPtJBmz0MPIQgtFEQ17Uezs","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/update/23"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"63"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 11:08:50 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No fields are passed\",\n    \"status\": \"failed\"\n}"},{"id":"5386620f-0843-45fe-8ce4-b9d56094893e","name":"Successful","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM0ODgwNSwianRpIjoiOTBmNTcwN2MtNzhlZC00MWM2LWE4NGEtOGY0MTZjMTdmZmEwIiwibmJmIjoxNjE5MzQ4ODA1LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNTI0MDV9.vnybtbLwlRaQ6V59FtRKLPtJBmz0MPIQgtFEQ17Uezs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address\": \"Mont Kiara\",\r\n    \"service_type\": \"TBC\",\r\n    \"pax\": 3,\r\n    \"meal_type\": \"lunch\",\r\n    \"menu_type\": \"Western\",\r\n    \"hob_type\": \"electric\",\r\n    \"no_of_hob\": 2,\r\n    \"oven\": false,\r\n    \"price\": 50,\r\n    \"diet_restrictions\": true,\r\n    \"proposed_date\": \"today\",\r\n    \"message\": \"I want delicious food\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/update/34"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"482"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Tue, 27 Apr 2021 16:54:18 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"active\": true,\n    \"booking_id\": 34,\n    \"cancelled\": false,\n    \"completed\": false,\n    \"confirmed\": false,\n    \"message\": \"Successfully updated\",\n    \"payment_status\": true,\n    \"updated_at\": \"Tue, 27 Apr 2021 23:03:05 GMT\",\n    \"updated_column\": [\n        \"address\",\n        \"service_type\",\n        \"pax\",\n        \"meal_type\",\n        \"menu_type\",\n        \"hob_type\",\n        \"no_of_hob\",\n        \"oven\",\n        \"price\",\n        \"diet_restrictions\",\n        \"proposed_date\",\n        \"message\",\n        \"updated_at\"\n    ]\n}"}],"_postman_id":"1ab31e6a-9efc-4f9f-b80f-01a93af61d1c"},{"name":"/bookings/chef-approve/<booking_id> [JWT]","id":"b5c43726-3a60-477c-942e-180901a4feb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM1ODMzMywianRpIjoiODI3MTU2NGItZDlkMC00OGQ4LWIzNzEtYTUzMWJkZjFjZjk0IiwibmJmIjoxNjE5MzU4MzMzLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNjE5MzN9.YhTayNcGWHufhJgpP7roxH_B-9tocRa-H1RsXr4Sh7w","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef-approve/21","description":"<p>Chef approves booking that was sent by user </p>\n<p>chef.confirmed: True\nchef.active: True</p>\n","urlObject":{"protocol":"https","path":["api","v1","bookings","chef-approve","21"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"cf0c28db-25ad-4c10-b3d3-0823220b0bc0","name":"Logged in as User, not Chef","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM1ODMzMywianRpIjoiODI3MTU2NGItZDlkMC00OGQ4LWIzNzEtYTUzMWJkZjFjZjk0IiwibmJmIjoxNjE5MzU4MzMzLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNjE5MzN9.YhTayNcGWHufhJgpP7roxH_B-9tocRa-H1RsXr4Sh7w","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef-approve/27"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"79"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 16:08:31 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You have to log in as Chef, not user\",\n    \"status\": \"Failed\"\n}"},{"id":"0c47d016-d5f2-4c15-8959-ee6b8bc5a27a","name":"Logged in as another Chef","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM1ODMzMywianRpIjoiODI3MTU2NGItZDlkMC00OGQ4LWIzNzEtYTUzMWJkZjFjZjk0IiwibmJmIjoxNjE5MzU4MzMzLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNjE5MzN9.YhTayNcGWHufhJgpP7roxH_B-9tocRa-H1RsXr4Sh7w","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef-approve/27"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"101"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 16:09:16 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"booking_chef_id\": 4,\n    \"message\": \"You are logged in as another chef\",\n    \"status\": \"failed\"\n}"},{"id":"9cc75c7a-d60e-4a93-9dca-7c5315b41bad","name":"Booking does not exist","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM1ODMzMywianRpIjoiODI3MTU2NGItZDlkMC00OGQ4LWIzNzEtYTUzMWJkZjFjZjk0IiwibmJmIjoxNjE5MzU4MzMzLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNjE5MzN9.YhTayNcGWHufhJgpP7roxH_B-9tocRa-H1RsXr4Sh7w","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef-approve/30"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"65"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 16:10:47 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Booking does not exist\",\n    \"status\": \"Failed\"\n}"},{"id":"29c2a070-028c-4644-be30-0a51df5643b6","name":"Success= confirmed: True","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM1ODMzMywianRpIjoiODI3MTU2NGItZDlkMC00OGQ4LWIzNzEtYTUzMWJkZjFjZjk0IiwibmJmIjoxNjE5MzU4MzMzLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNjE5MzN9.YhTayNcGWHufhJgpP7roxH_B-9tocRa-H1RsXr4Sh7w","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef-approve/34"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"163"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Tue, 27 Apr 2021 16:58:41 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"active\": true,\n    \"booking_id\": \"34\",\n    \"cancelled\": false,\n    \"completed\": false,\n    \"confirmed\": true,\n    \"payment_status\": true,\n    \"status\": \"success\"\n}"}],"_postman_id":"b5c43726-3a60-477c-942e-180901a4feb5"},{"name":"/bookings/user-cancel/<booking_id> [JWT]","id":"cdae7c2a-06dd-417c-a3a2-221f512e26ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/user-cancel/36","description":"<p>User cancels booking after chef confirms booking</p>\n<p>booking.cancelled = True\nbooking.active = False</p>\n","urlObject":{"protocol":"https","path":["api","v1","bookings","user-cancel","36"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"7fb8d4ec-9907-45de-bdce-ae20a86d5dcd","name":"Booking does not exist","originalRequest":{"method":"PUT","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/user-cancel/21"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"65"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 16:28:57 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Booking does not exist\",\n    \"status\": \"Failed\"\n}"},{"id":"4fa31224-0950-4cd6-9860-b3e100643693","name":"Logged in as Chef, not User","originalRequest":{"method":"PUT","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/user-cancel/27"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"79"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 16:30:06 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You have to log in as User, not Chef\",\n    \"status\": \"Failed\"\n}"},{"id":"e50a9361-3392-410a-b4b5-0eb88888de16","name":"Logged in as another User","originalRequest":{"method":"PUT","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/user-cancel/27"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"101"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 16:31:56 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"booking_chef_id\": 4,\n    \"message\": \"You are logged in as another user\",\n    \"status\": \"failed\"\n}"},{"id":"3a37d687-e565-4014-a585-eb17ae3da78e","name":"Success- cancelled:True, confirmed:True","originalRequest":{"method":"PUT","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/user-cancel/36"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"164"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Tue, 27 Apr 2021 17:00:25 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"active\": false,\n    \"booking_id\": \"36\",\n    \"cancelled\": true,\n    \"completed\": false,\n    \"confirmed\": false,\n    \"payment_status\": true,\n    \"status\": \"success\"\n}"}],"_postman_id":"cdae7c2a-06dd-417c-a3a2-221f512e26ea"},{"name":"/bookings/chef-reject/<booking_Id> [JWT]","id":"a5ac6b48-412d-486a-bc72-f7d9280d7ae0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM2NzM1NiwianRpIjoiOTZiNGUxM2QtYjllYy00MDAxLWFmMmEtNTE3OGEwNzFhMTQzIiwibmJmIjoxNjE5MzY3MzU2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNzA5NTZ9.rMimJY1g7kM73oU_pCJw1YFGqyuCC8OARmjJVhOAA6E","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef-reject/27","description":"<p>Chef rejects booking that was submitted by user</p>\n<p>booking.confirmed = False\nbooking.active = False</p>\n","urlObject":{"protocol":"https","path":["api","v1","bookings","chef-reject","27"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"4f2fe5f5-f90e-4d22-b3fe-a4f0dce178ef","name":"Logged in as User, not Chef","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM2NzM1NiwianRpIjoiOTZiNGUxM2QtYjllYy00MDAxLWFmMmEtNTE3OGEwNzFhMTQzIiwibmJmIjoxNjE5MzY3MzU2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNzA5NTZ9.rMimJY1g7kM73oU_pCJw1YFGqyuCC8OARmjJVhOAA6E","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef-reject/27"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"79"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 16:17:29 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You have to log in as Chef, not user\",\n    \"status\": \"Failed\"\n}"},{"id":"e0a2d8a6-d69b-4468-af9f-72f6ef4bd930","name":"Success","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM2NzM1NiwianRpIjoiOTZiNGUxM2QtYjllYy00MDAxLWFmMmEtNTE3OGEwNzFhMTQzIiwibmJmIjoxNjE5MzY3MzU2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNzA5NTZ9.rMimJY1g7kM73oU_pCJw1YFGqyuCC8OARmjJVhOAA6E","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef-reject/27"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"69"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 16:18:24 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"active\": false,\n    \"booking_id\": \"27\",\n    \"status\": \"success\"\n}"},{"id":"3b5c4271-a55a-4b96-af96-65f0936b8a86","name":"Logged in as another chef","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM2NzM1NiwianRpIjoiOTZiNGUxM2QtYjllYy00MDAxLWFmMmEtNTE3OGEwNzFhMTQzIiwibmJmIjoxNjE5MzY3MzU2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNzA5NTZ9.rMimJY1g7kM73oU_pCJw1YFGqyuCC8OARmjJVhOAA6E","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef-reject/27"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"101"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 16:18:56 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"booking_chef_id\": 4,\n    \"message\": \"You are logged in as another chef\",\n    \"status\": \"failed\"\n}"},{"id":"b8e82e13-c338-4ca5-b22a-761f90051462","name":"Booking does not exist","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM2NzM1NiwianRpIjoiOTZiNGUxM2QtYjllYy00MDAxLWFmMmEtNTE3OGEwNzFhMTQzIiwibmJmIjoxNjE5MzY3MzU2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTkzNzA5NTZ9.rMimJY1g7kM73oU_pCJw1YFGqyuCC8OARmjJVhOAA6E","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/chef-reject/30"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"65"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 16:19:17 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Booking does not exist\",\n    \"status\": \"Failed\"\n}"}],"_postman_id":"a5ac6b48-412d-486a-bc72-f7d9280d7ae0"},{"name":"/bookings/user-completed/<booking_id> [JWT]","id":"6c0b41e2-e3c6-4661-a3ca-048afe84e9f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/user-completed/1","urlObject":{"protocol":"https","path":["api","v1","bookings","user-completed","1"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"82f22350-62cf-4271-8c68-803621ff4d85","name":"Completed: True","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTU0MTI5NiwianRpIjoiYWNlOWQxZWYtNThjYS00NjllLTlmY2ItMGQ3ZTUwZTUyMTg5IiwibmJmIjoxNjE5NTQxMjk2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidXNlcjFAbmV4dC5jb20iLCJleHAiOjE2MTk1NDQ4OTZ9.CAiXRIjV6QlmrysiM80eKlWBmcNbVwwlcv6fVIhnUOY","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/user-completed/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 16:35:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"128"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"active\": true,\n    \"booking_id\": \"1\",\n    \"cancelled\": false,\n    \"completed\": true,\n    \"confirmed\": false,\n    \"payment_status\": false,\n    \"status\": \"success\"\n}"}],"_postman_id":"6c0b41e2-e3c6-4661-a3ca-048afe84e9f2"},{"name":"/bookings/user-paid/<booking_id> [JWT]","id":"3d228125-0b60-4adb-9d73-54b7a916bad8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTU0MTI5NiwianRpIjoiYWNlOWQxZWYtNThjYS00NjllLTlmY2ItMGQ3ZTUwZTUyMTg5IiwibmJmIjoxNjE5NTQxMjk2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidXNlcjFAbmV4dC5jb20iLCJleHAiOjE2MTk1NDQ4OTZ9.CAiXRIjV6QlmrysiM80eKlWBmcNbVwwlcv6fVIhnUOY","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/user-paid/2","urlObject":{"protocol":"https","path":["api","v1","bookings","user-paid","2"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"c50f9238-367b-49f0-8835-c17baea9c3b9","name":"Payment :True","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTU0MTI5NiwianRpIjoiYWNlOWQxZWYtNThjYS00NjllLTlmY2ItMGQ3ZTUwZTUyMTg5IiwibmJmIjoxNjE5NTQxMjk2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidXNlcjFAbmV4dC5jb20iLCJleHAiOjE2MTk1NDQ4OTZ9.CAiXRIjV6QlmrysiM80eKlWBmcNbVwwlcv6fVIhnUOY","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/user-paid/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 16:39:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"128"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"active\": true,\n    \"booking_id\": \"2\",\n    \"cancelled\": false,\n    \"completed\": false,\n    \"confirmed\": false,\n    \"payment_status\": true,\n    \"status\": \"success\"\n}"}],"_postman_id":"3d228125-0b60-4adb-9d73-54b7a916bad8"},{"name":"/bookings/delete/<booking_id>","id":"4a4f05fc-b794-4284-9d5e-bd9ba57f3352","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/delete/5","description":"<p>Delete a specific booking.\nCan be deleted by either user/chef for now. Because we technically should keep record of bookings (not delete), this endpoint is for deployment testing purposes.</p>\n","urlObject":{"protocol":"https","path":["api","v1","bookings","delete","5"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"d99a561b-8be4-47ba-ac9c-ecbbc698367d","name":"Bad request","originalRequest":{"method":"DELETE","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/delete/5"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"70"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 14:12:41 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unable to find this booking\",\n    \"status\": \"failed\"\n}"},{"id":"d0dc762e-5580-472e-b873-49ecff5d37aa","name":"Successful delete","originalRequest":{"method":"DELETE","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/bookings/delete/20"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"87"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 14:12:57 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"booking_id\": \"20\",\n    \"message\": \"Successfully deleted\",\n    \"status\": \"success\"\n}"}],"_postman_id":"4a4f05fc-b794-4284-9d5e-bd9ba57f3352"}],"id":"446807e8-aa74-4e3c-a7c2-0401ce9d5f76","_postman_id":"446807e8-aa74-4e3c-a7c2-0401ce9d5f76","description":""},{"name":"Notifications","item":[{"name":"/notifications/new-bookings [JWT]","id":"17321fff-f1f5-490f-b076-e74dee7e2ca5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM2OTc0MywianRpIjoiYmFhNGU5MjMtMzMxMi00Yzg2LWFlOTQtZDE4OGQ3NGU1YTJhIiwibmJmIjoxNjE5MzY5NzQzLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNzMzNDN9.VR_XPHbjAPsEVUkL0ICp2syayA1qRRE3CMbIe2CtJsY","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/new-bookings","description":"<p>Return NEW bookings for chef that is logged in</p>\n<p>Filter bookings that are:</p>\n<ul>\n<li>active: True</li>\n<li>confirmed: False</li>\n<li>cancelled: False</li>\n<li>completed: False</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","notifications","new-bookings"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"a5e3ff2f-8975-4597-ab1a-3da64df88c82","name":"(User) No new bookings","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM2OTc0MywianRpIjoiYmFhNGU5MjMtMzMxMi00Yzg2LWFlOTQtZDE4OGQ3NGU1YTJhIiwibmJmIjoxNjE5MzY5NzQzLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNzMzNDN9.VR_XPHbjAPsEVUkL0ICp2syayA1qRRE3CMbIe2CtJsY","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/new-bookings"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"89"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 17:09:30 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are no new bookings created by this user\",\n    \"status\": \"Failed\"\n}"},{"id":"b17c19bd-8531-4c6c-908a-ed77d4b9d047","name":"(User) Success -New bookings list","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM2OTc0MywianRpIjoiYmFhNGU5MjMtMzMxMi00Yzg2LWFlOTQtZDE4OGQ3NGU1YTJhIiwibmJmIjoxNjE5MzY5NzQzLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNzMzNDN9.VR_XPHbjAPsEVUkL0ICp2syayA1qRRE3CMbIe2CtJsY","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/new-bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"297"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 17:10:37 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"results\": [\n        {\n            \"booking_active\": true,\n            \"booking_completed\": false,\n            \"booking_confirmed\": false,\n            \"booking_id\": 32,\n            \"chef_id\": 14,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 13\n        }\n    ]\n}"},{"id":"94e17db9-3db8-4ab1-a5e1-ac6003fec473","name":"(Chef) No new bookings","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM2OTc0MywianRpIjoiYmFhNGU5MjMtMzMxMi00Yzg2LWFlOTQtZDE4OGQ3NGU1YTJhIiwibmJmIjoxNjE5MzY5NzQzLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNzMzNDN9.VR_XPHbjAPsEVUkL0ICp2syayA1qRRE3CMbIe2CtJsY","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/new-bookings"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"82"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 17:12:50 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are no new bookings for this chef\",\n    \"status\": \"Failed\"\n}"},{"id":"93c41b3f-c96c-4b9c-8e09-5a166881bb29","name":"(Chef) Success - New bookings list","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTM2OTc0MywianRpIjoiYmFhNGU5MjMtMzMxMi00Yzg2LWFlOTQtZDE4OGQ3NGU1YTJhIiwibmJmIjoxNjE5MzY5NzQzLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTkzNzMzNDN9.VR_XPHbjAPsEVUkL0ICp2syayA1qRRE3CMbIe2CtJsY","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/new-bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"557"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sun, 25 Apr 2021 17:13:42 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"results\": [\n        {\n            \"booking_active\": true,\n            \"booking_completed\": false,\n            \"booking_confirmed\": false,\n            \"booking_id\": 31,\n            \"chef_id\": 17,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 14\n        },\n        {\n            \"booking_active\": true,\n            \"booking_completed\": false,\n            \"booking_confirmed\": false,\n            \"booking_id\": 32,\n            \"chef_id\": 17,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 6\n        }\n    ]\n}"}],"_postman_id":"17321fff-f1f5-490f-b076-e74dee7e2ca5"},{"name":"/notifications/approved-bookings [JWT]","id":"cf3bdc06-abe3-44f2-8c7e-fecad053bfaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNTMwOCwianRpIjoiZTg0YWU5NGUtZjc0Yi00ZDY3LTgwMGEtZmMyYjc0Mzg5MjljIiwibmJmIjoxNjE5NDA1MzA4LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTk0MDg5MDh9.hFit2kH6ASGUAZFOSZJI41cURWNwLIqclkJm1q0-JzY","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/approved-bookings","description":"<p>Bookings already confirmed by Chef</p>\n<ul>\n<li>Bookings.confirmed = True</li>\n<li>Bookings.active = True</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","notifications","approved-bookings"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"0b79987f-1638-447e-a5f5-44ac55ca64c2","name":"(Chef) Successful request","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNDQzMSwianRpIjoiZWRlYTk0M2QtNjA2Mi00ODQ5LWE1OWYtZjcwZDBiMmU2OTFiIiwibmJmIjoxNjE5NDA0NDMxLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDgwMzF9.DTJb4prZOUQtZAKRCDSjmNVzIkbawoGCuFTq_FKGli0","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/approved-bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"555"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 02:36:07 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"results\": [\n        {\n            \"booking_active\": true,\n            \"booking_completed\": false,\n            \"booking_confirmed\": true,\n            \"booking_id\": 31,\n            \"chef_id\": 17,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 14\n        },\n        {\n            \"booking_active\": true,\n            \"booking_completed\": false,\n            \"booking_confirmed\": true,\n            \"booking_id\": 32,\n            \"chef_id\": 17,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 6\n        }\n    ]\n}"},{"id":"ff09dab7-646b-431d-ab5a-f3bb1d022eb6","name":"(Chef) No confirmed bookings","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNDQzMSwianRpIjoiZWRlYTk0M2QtNjA2Mi00ODQ5LWE1OWYtZjcwZDBiMmU2OTFiIiwibmJmIjoxNjE5NDA0NDMxLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDgwMzF9.DTJb4prZOUQtZAKRCDSjmNVzIkbawoGCuFTq_FKGli0","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/approved-bookings"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"88"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 02:47:48 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are no confirmed bookings for this chef\",\n    \"status\": \"Failed\"\n}"},{"id":"70851fc3-cd4f-4454-9cbb-6b5100a444a7","name":"(User) Successful request","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNDQzMSwianRpIjoiZWRlYTk0M2QtNjA2Mi00ODQ5LWE1OWYtZjcwZDBiMmU2OTFiIiwibmJmIjoxNjE5NDA0NDMxLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDgwMzF9.DTJb4prZOUQtZAKRCDSjmNVzIkbawoGCuFTq_FKGli0","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/approved-bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"556"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 02:39:09 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"results\": [\n        {\n            \"booking_active\": true,\n            \"booking_completed\": false,\n            \"booking_confirmed\": true,\n            \"booking_id\": 31,\n            \"chef_id\": 14,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 10\n        },\n        {\n            \"booking_active\": true,\n            \"booking_completed\": false,\n            \"booking_confirmed\": true,\n            \"booking_id\": 32,\n            \"chef_id\": 14,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 10\n        }\n    ]\n}"},{"id":"b741156e-d56f-4dea-b279-af4734dd92c4","name":"(User) No confirmed booking","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNTMwOCwianRpIjoiZTg0YWU5NGUtZjc0Yi00ZDY3LTgwMGEtZmMyYjc0Mzg5MjljIiwibmJmIjoxNjE5NDA1MzA4LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE2MTk0MDg5MDh9.hFit2kH6ASGUAZFOSZJI41cURWNwLIqclkJm1q0-JzY","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/approved-bookings"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"88"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 02:49:34 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are no confirmed bookings for this user\",\n    \"status\": \"Failed\"\n}"}],"_postman_id":"cf3bdc06-abe3-44f2-8c7e-fecad053bfaf"},{"name":"/notifications/rejected-bookings/ [JWT]","id":"950b0472-6a3b-4f5b-b266-4c2949e004a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNTA5MCwianRpIjoiODk1MTlhZDQtYjE5Yi00NjY3LThmZDItYzM0YWZkZmVlODNlIiwibmJmIjoxNjE5NDA1MDkwLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDg2OTB9.922LkrmS8LZwGbmXkFUCc6MBPlX4IwjZ6MuK6ozXU98","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/rejected-bookings","description":"<p>Rejected bookings by Chef and for users</p>\n<p>Booking.active: False\nBooking.confirmed: False</p>\n","urlObject":{"protocol":"https","path":["api","v1","notifications","rejected-bookings"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"272ba83b-aa3b-42d0-986e-16339e282282","name":"(Chef) Successful request","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNTA5MCwianRpIjoiODk1MTlhZDQtYjE5Yi00NjY3LThmZDItYzM0YWZkZmVlODNlIiwibmJmIjoxNjE5NDA1MDkwLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDg2OTB9.922LkrmS8LZwGbmXkFUCc6MBPlX4IwjZ6MuK6ozXU98","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/rejected-bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"558"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 02:45:48 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"results\": [\n        {\n            \"booking_active\": false,\n            \"booking_completed\": false,\n            \"booking_confirmed\": true,\n            \"booking_id\": 31,\n            \"chef_id\": 17,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 10\n        },\n        {\n            \"booking_active\": false,\n            \"booking_completed\": false,\n            \"booking_confirmed\": true,\n            \"booking_id\": 32,\n            \"chef_id\": 17,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 10\n        }\n    ]\n}"},{"id":"55a53ba5-2ee3-4ff2-9dac-d0d21e99de9f","name":"(Chef) No rejected bookings","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNTA5MCwianRpIjoiODk1MTlhZDQtYjE5Yi00NjY3LThmZDItYzM0YWZkZmVlODNlIiwibmJmIjoxNjE5NDA1MDkwLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDg2OTB9.922LkrmS8LZwGbmXkFUCc6MBPlX4IwjZ6MuK6ozXU98","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/rejected-bookings"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"87"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 02:47:30 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are no rejected bookings for this chef\",\n    \"status\": \"Failed\"\n}"},{"id":"bb6fbf79-685b-4efd-8c27-0b47992ff611","name":"(User) Successful request","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNTA5MCwianRpIjoiODk1MTlhZDQtYjE5Yi00NjY3LThmZDItYzM0YWZkZmVlODNlIiwibmJmIjoxNjE5NDA1MDkwLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDg2OTB9.922LkrmS8LZwGbmXkFUCc6MBPlX4IwjZ6MuK6ozXU98","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/rejected-bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"560"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 02:55:27 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"results\": [\n        {\n            \"booking_active\": false,\n            \"booking_completed\": false,\n            \"booking_confirmed\": false,\n            \"booking_id\": 31,\n            \"chef_id\": 17,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 10\n        },\n        {\n            \"booking_active\": false,\n            \"booking_completed\": false,\n            \"booking_confirmed\": false,\n            \"booking_id\": 32,\n            \"chef_id\": 17,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 10\n        }\n    ]\n}"},{"id":"95e7f348-804a-487d-b204-67fe815ebd78","name":"(User) No rejected bookings","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNTA5MCwianRpIjoiODk1MTlhZDQtYjE5Yi00NjY3LThmZDItYzM0YWZkZmVlODNlIiwibmJmIjoxNjE5NDA1MDkwLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDg2OTB9.922LkrmS8LZwGbmXkFUCc6MBPlX4IwjZ6MuK6ozXU98","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/rejected-bookings"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"87"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 02:50:55 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are no rejected bookings for this user\",\n    \"status\": \"Failed\"\n}"}],"_postman_id":"950b0472-6a3b-4f5b-b266-4c2949e004a1"},{"name":"/notifications/cancelled-bookings [JWT]","id":"d24cc2de-7f16-4296-9ec4-9c820c5c172c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNTk2OSwianRpIjoiNDBjZTQxN2EtMjI1MC00M2M3LWFkMjctYzhhZTFlMzY0MGI3IiwibmJmIjoxNjE5NDA1OTY5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDk1Njl9.eFDJob0yj968S3dYvQOYk8myrrZvGEZczahcjuORO5Q","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/cancelled-bookings","description":"<p>Bookings that are cancelled by users after chef confirmed</p>\n","urlObject":{"protocol":"https","path":["api","v1","notifications","cancelled-bookings"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"4a5bbc79-2bb7-400f-9faa-5bd29bf032c5","name":"(Chef) No cancelled bookings","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNTk2OSwianRpIjoiNDBjZTQxN2EtMjI1MC00M2M3LWFkMjctYzhhZTFlMzY0MGI3IiwibmJmIjoxNjE5NDA1OTY5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDk1Njl9.eFDJob0yj968S3dYvQOYk8myrrZvGEZczahcjuORO5Q","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/cancelled-bookings"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"88"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 03:00:20 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are no cancelled bookings for this chef\",\n    \"status\": \"Failed\"\n}"},{"id":"3dd4c565-dd0a-4106-adec-79d6c4360723","name":"(Chef) Successful request","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNTk2OSwianRpIjoiNDBjZTQxN2EtMjI1MC00M2M3LWFkMjctYzhhZTFlMzY0MGI3IiwibmJmIjoxNjE5NDA1OTY5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDk1Njl9.eFDJob0yj968S3dYvQOYk8myrrZvGEZczahcjuORO5Q","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/cancelled-bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"558"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 03:01:54 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"results\": [\n        {\n            \"booking_active\": false,\n            \"booking_completed\": false,\n            \"booking_confirmed\": true,\n            \"booking_id\": 31,\n            \"chef_id\": 17,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 10\n        },\n        {\n            \"booking_active\": false,\n            \"booking_completed\": false,\n            \"booking_confirmed\": true,\n            \"booking_id\": 32,\n            \"chef_id\": 17,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 10\n        }\n    ]\n}"},{"id":"ce28777c-d8ca-4f3e-9b71-5a8e73ae7ac2","name":"(User) Successful request","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNTk2OSwianRpIjoiNDBjZTQxN2EtMjI1MC00M2M3LWFkMjctYzhhZTFlMzY0MGI3IiwibmJmIjoxNjE5NDA1OTY5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDk1Njl9.eFDJob0yj968S3dYvQOYk8myrrZvGEZczahcjuORO5Q","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/cancelled-bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"558"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 03:02:37 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"results\": [\n        {\n            \"booking_active\": false,\n            \"booking_completed\": false,\n            \"booking_confirmed\": true,\n            \"booking_id\": 31,\n            \"chef_id\": 17,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 10\n        },\n        {\n            \"booking_active\": false,\n            \"booking_completed\": false,\n            \"booking_confirmed\": true,\n            \"booking_id\": 32,\n            \"chef_id\": 17,\n            \"price\": 50,\n            \"proposed_date\": \"Mon, 26 Apr 2021 00:00:00 GMT\",\n            \"user_id\": 10\n        }\n    ]\n}"},{"id":"3dc0f7af-db39-4f11-a460-7171c7cb9d55","name":"(User) No cancelled bookings","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTQwNTk2OSwianRpIjoiNDBjZTQxN2EtMjI1MC00M2M3LWFkMjctYzhhZTFlMzY0MGI3IiwibmJmIjoxNjE5NDA1OTY5LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiQ2hlZiBPTUciLCJleHAiOjE2MTk0MDk1Njl9.eFDJob0yj968S3dYvQOYk8myrrZvGEZczahcjuORO5Q","type":"text"}],"url":"https://foodapp2021.herokuapp.com/api/v1/notifications/cancelled-bookings"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"88"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 03:03:03 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are no cancelled bookings for this user\",\n    \"status\": \"Failed\"\n}"}],"_postman_id":"d24cc2de-7f16-4296-9ec4-9c820c5c172c"}],"id":"53185996-b1fe-466d-a614-a236ae35a7a7","_postman_id":"53185996-b1fe-466d-a614-a236ae35a7a7","description":""},{"name":"Menus","item":[{"name":"/menus/<chef_id>/new","id":"d05e3a61-a9fa-4b52-bdaa-7856d801e192","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"food_category\": \"Greek\",\r\n    \"appetiser\" : \"Hummus\",\r\n    \"main\": \"Spaghetti\",\r\n    \"starter\": \"Bread\",\r\n    \"dessert\": \"Ice-cream\",\r\n    \"description\": \"Yummy meal for you okay\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/menus/10/new","description":"<p>Chef creates new menu</p>\n","urlObject":{"protocol":"https","path":["api","v1","menus","10","new"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"70ba7f2b-c2da-47bf-a154-8d68829dd439","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"food_category\": \"Greek\",\r\n    \"appetiser\" : \"Hummus\",\r\n    \"main\": \"Spaghetti\",\r\n    \"starter\": \"Bread\",\r\n    \"dessert\": \"Ice-cream\",\r\n    \"description\": \"Yummy meal for you okay\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/menus/24/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"285"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 16:35:56 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"menu\": {\n        \"appetiser\": \"Hummus\",\n        \"chef\": \"24\",\n        \"description\": \"Yummy meal for you okay\",\n        \"dessert\": \"Ice-cream\",\n        \"food_category\": \"Greek\",\n        \"id\": 23,\n        \"main\": \"Spaghetti\",\n        \"starter\": \"Bread\"\n    },\n    \"message\": \"Successfully created new menu\"\n}"},{"id":"e206b4dc-14c1-4b7a-babc-8ead3cfcd69c","name":"Chef doesn't exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"food_category\": \"Western\",\r\n    \"menu\":\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/menus/10/new"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"67"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Wed, 21 Apr 2021 15:00:52 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This chef does not exist\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"d05e3a61-a9fa-4b52-bdaa-7856d801e192"},{"name":"/menus","id":"b2680579-d5f6-48fa-b244-cff7f2d9133b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menus","description":"<p>Return list of ALL existing chef menus</p>\n","urlObject":{"protocol":"https","path":["api","v1","menus"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"607256e1-5f57-428e-85eb-f999c1e18d70","name":"Failed request","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menus"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"65"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Wed, 21 Apr 2021 14:31:37 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are no menus yet\",\n    \"status\": \"failed\"\n}"},{"id":"85774024-adf4-4f75-b29b-d8f7f256b149","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"311"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 16:37:37 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"_count\": 1,\n    \"_status\": \"success\",\n    \"results\": [\n        {\n            \"appetiser\": \"Hummus\",\n            \"chef\": 24,\n            \"description\": \"Yummy meal for you okay\",\n            \"dessert\": \"Ice-cream\",\n            \"food_category_id\": \"Greek\",\n            \"id\": 23,\n            \"main\": \"Spaghetti\",\n            \"starter\": \"Bread\"\n        }\n    ]\n}"}],"_postman_id":"b2680579-d5f6-48fa-b244-cff7f2d9133b"},{"name":"/menus/<menu_id>","id":"23f9b18c-1fab-4acd-b666-dcc7b7a6b5f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menus/23","description":"<p>Returns list of fields for ONE menu</p>\n","urlObject":{"protocol":"https","path":["api","v1","menus","23"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"e3829cf1-c895-404b-8e92-ceba412d80c6","name":"Failed request","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menus/1"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"66"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 07:05:30 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This menu doesn't exist\",\n    \"status\": \"failed\"\n}"},{"id":"35414c8d-bea1-4c65-a12a-4ae7a1ceeaab","name":"Successful","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menus/23"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"247"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 16:37:58 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"menu_id\": \"23\",\n    \"results\": {\n        \"appetiser\": \"Hummus\",\n        \"chef_id\": 24,\n        \"description\": \"Yummy meal for you okay\",\n        \"dessert\": \"Ice-cream\",\n        \"food_category\": \"Greek\",\n        \"main\": \"Spaghetti\",\n        \"starter\": \"Bread\"\n    }\n}"}],"_postman_id":"23f9b18c-1fab-4acd-b666-dcc7b7a6b5f8"},{"name":"/menus/chef/<chef_id>","id":"b216aabc-c5b0-42c0-beca-53bf3c698604","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menus/chef/24","description":"<p>Return all menus based on a SPECIFIC chef</p>\n","urlObject":{"protocol":"https","path":["api","v1","menus","chef","24"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"8e9399cd-216e-45e2-a739-571bf0c40607","name":"Successful","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menus/chef/24"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"310"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 16:45:29 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"message\": \"successful\",\n    \"results\": [\n        {\n            \"appetiser\": \"Hummus\",\n            \"chef\": 24,\n            \"description\": \"Yummy meal for you okay\",\n            \"dessert\": \"Ice-cream\",\n            \"food_category\": \"Greek\",\n            \"id\": 23,\n            \"main\": \"Spaghetti\",\n            \"starter\": \"Bread\"\n        }\n    ]\n}"},{"id":"327c21d4-a724-4b1f-aeaa-f0d85157faf8","name":"Bad request","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menus/chef/10"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"63"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Fri, 23 Apr 2021 08:14:09 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No records for this chef or in the list yet\"\n}"}],"_postman_id":"b216aabc-c5b0-42c0-beca-53bf3c698604"},{"name":"/menus/chef/<chef_id>/<food_category>","id":"54e52dab-7b47-4f79-ab3c-564a6e853048","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menus/chef/24/Greek","description":"<p>Return the specific menu based on chef_id and food_category input (instead of menu ID)</p>\n","urlObject":{"protocol":"https","path":["api","v1","menus","chef","24","Greek"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"bc6ed607-9fcf-4fc1-aea8-d7f2a902c486","name":"Successful request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/menus/chef/1/Korean"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"245"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 16:50:27 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"menu_id\": 20,\n    \"results\": {\n        \"appetiser\": \"Hummus\",\n        \"chef_id\": 1,\n        \"description\": \"Yummy meal for you okay\",\n        \"dessert\": \"Ice-cream\",\n        \"food_category\": \"Korean\",\n        \"main\": \"Spaghetti\",\n        \"starter\": \"Bread\"\n    }\n}"},{"id":"3685271a-4918-462b-b925-4ba69f6e9ea7","name":"Chef doesnt exist","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/menus/chef/1/Korean"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"67"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 16:51:10 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This chef does not exist\",\n    \"status\": \"failed\"\n}"},{"id":"004798bf-3b11-4409-98e0-a306c0bcafb7","name":"Chef does not have this food category","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/menus/chef/1/Japanese"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"107"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 16:51:38 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This chef does not have this food category yet, create one first\",\n    \"status\": \"Failed\"\n}"},{"id":"6148bf31-f78f-4540-96ef-73b93a90c1f0","name":"No menu for this category yet","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/menus/chef/1/Korean"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 16:53:20 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This chef does not have menu yet for this category\",\n    \"status\": \"Failed\"\n}"}],"_postman_id":"54e52dab-7b47-4f79-ab3c-564a6e853048"},{"name":"/menus/update/<menu_id>","id":"1f88402e-7965-43c6-ade5-1635137c4273","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"food_category\": \"Korean\",\r\n    \"appetiser\": \"New appetiser1\",\r\n    \"main\": \"New main1\",\r\n    \"starter\": \"New starter1\",\r\n    \"dessert\": \"New dessert1\",\r\n    \"description\": \"New description1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/menus/update/16","description":"<p>To update menu</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","v1","menus","update","16"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0a1669eb-93ce-42e3-9e8c-875cff315458","name":"No params are passed","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/menus/update/21"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"63"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 06:54:34 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No fields are passed\",\n    \"status\": \"failed\"\n}"},{"id":"8c5e77c9-bcd1-4c16-afc2-f9eb1acde373","name":"Menu doesn't exist","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/menus/update/10"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"66"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 06:55:15 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This menu doesn't exist\",\n    \"status\": \"failed\"\n}"},{"id":"3bbd122e-65e5-4041-a508-43d70b3089e4","name":"Success - all fields","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"food_category\": \"Korean\",\r\n    \"appetiser\": \"New appetiser1\",\r\n    \"main\": \"New main1\",\r\n    \"starter\": \"New starter1\",\r\n    \"dessert\": \"New dessert1\",\r\n    \"description\": \"New description1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/menus/update/16"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"258"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 08:51:47 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"menu_id\": 16,\n    \"message\": \"Successfully updated\",\n    \"updated_at\": \"Sat, 24 Apr 2021 16:51:10 GMT\",\n    \"updated_column\": [\n        \"food_category\",\n        \"appetiser\",\n        \"main\",\n        \"starter\",\n        \"dessert\",\n        \"description\",\n        \"updated_at\"\n    ]\n}"},{"id":"07965c9b-3d16-49da-9d13-1d6f95f8e5c7","name":"Success - partial fields","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"food_category\": \"Korean\",\r\n    \"appetiser\": \"New appetiser1\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/menus/update/16"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"193"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 08:52:46 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"menu_id\": 16,\n    \"message\": \"Successfully updated\",\n    \"updated_at\": \"Sat, 24 Apr 2021 16:51:47 GMT\",\n    \"updated_column\": [\n        \"food_category\",\n        \"appetiser\",\n        \"updated_at\"\n    ]\n}"}],"_postman_id":"1f88402e-7965-43c6-ade5-1635137c4273"},{"name":"/menus/delete/<menu_id>","id":"900dc0da-711f-4948-9ef2-eb0d261ee183","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/v1/menus/delete/16","description":"<p>Successfully deleted menu</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","v1","menus","delete","16"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c8e00ef2-01ad-4fb1-8ed9-01c2ae73e8b9","name":"Successful","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/v1/menus/delete/23"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"84"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 16:49:28 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"menu_id\": \"23\",\n    \"message\": \"Successfully deleted\",\n    \"status\": \"success\"\n}"},{"id":"266a3062-320c-4f45-92f8-56616f217d8d","name":"Menu doesn't exist","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/v1/menus/delete/16"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"67"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 16:49:10 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unable to find this menu\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"900dc0da-711f-4948-9ef2-eb0d261ee183"}],"id":"49224bd2-4791-400d-9509-e47fc4cc593d","_postman_id":"49224bd2-4791-400d-9509-e47fc4cc593d","description":""},{"name":"Menu Images","item":[{"name":"/menu_images/new/<chef_menu_id> [JWT]","id":"48a8e1ef-1ceb-4456-8618-624f64fa6e59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"image_path\": \"image.png\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/menu_images/new/11","description":"<p>Chef submits new images</p>\n","urlObject":{"protocol":"https","path":["api","v1","menu_images","new","11"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"2c4e322c-7087-4223-98ce-490e3f490192","name":"Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"image_path\": \"image.png\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/menu_images/new/11"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 13:21:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"103"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"chef_id\": 14,\n    \"image_path\": \"image.png\",\n    \"menu_id\": 11,\n    \"message\": \"Successfully posted this menu's image\"\n}"}],"_postman_id":"48a8e1ef-1ceb-4456-8618-624f64fa6e59"},{"name":"/menu_images/<chef_menu_id>","id":"6c6b3b98-85b2-41d3-99da-48671e7ae34a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menu_images/1","description":"<p>Return menu images for a chef</p>\n","urlObject":{"protocol":"https","path":["api","v1","menu_images","1"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"fe5df7ea-0e91-40a6-a2ff-b41c0852f6ff","name":"Empty images","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/menu_images/24"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Tue, 27 Apr 2021 09:53:19 GMT"}],"cookie":[],"responseTime":null,"body":"[]"},{"id":"848e8b8e-995f-4951-aace-369abe9df0f0","name":"Successful","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menu_images/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 11:22:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"321"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"chef\": 10,\n        \"image_path\": null,\n        \"menu_id\": 1,\n        \"menu_images_id\": 1\n    },\n    {\n        \"chef\": 10,\n        \"image_path\": null,\n        \"menu_id\": 1,\n        \"menu_images_id\": 2\n    },\n    {\n        \"chef\": 10,\n        \"image_path\": null,\n        \"menu_id\": 1,\n        \"menu_images_id\": 3\n    },\n    {\n        \"chef\": 10,\n        \"image_path\": \"image.png\",\n        \"menu_id\": 1,\n        \"menu_images_id\": 4\n    },\n    {\n        \"chef\": 10,\n        \"image_path\": \"image.png\",\n        \"menu_id\": 1,\n        \"menu_images_id\": 5\n    }\n]"}],"_postman_id":"6c6b3b98-85b2-41d3-99da-48671e7ae34a"},{"name":"/menu_images/update/<menu_image_id> [JWT]","id":"99e1e9a6-94a2-469f-9eda-589e38b57a9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTUxNzI4NiwianRpIjoiZjE0YTliOWItYjA3Yi00MGZkLTgxYjktZTdkZWFiZGFiZDM0IiwibmJmIjoxNjE5NTE3Mjg2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiY2hlZjNAbmV4dC5jb20iLCJleHAiOjE2MTk1MjA4ODZ9.rRfthQPjcU_-dru2TSKY-caAdf5A4qixWSHPMZezFqQ","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"menu_image","type":"file","src":"reactJS.jpg"}]},"url":"https://foodapp2021.herokuapp.com/api/v1/menu_images/update/29","urlObject":{"protocol":"https","path":["api","v1","menu_images","update","29"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"29486f20-ad3e-44d1-b466-b1d99be16faf","name":"Successful","originalRequest":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJDaGVmIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTUxNzI4NiwianRpIjoiZjE0YTliOWItYjA3Yi00MGZkLTgxYjktZTdkZWFiZGFiZDM0IiwibmJmIjoxNjE5NTE3Mjg2LCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiY2hlZjNAbmV4dC5jb20iLCJleHAiOjE2MTk1MjA4ODZ9.rRfthQPjcU_-dru2TSKY-caAdf5A4qixWSHPMZezFqQ","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"menu_image","type":"file","src":"ninja.jfif"}]},"url":"https://foodapp2021.herokuapp.com/api/v1/menu_images/update/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 11:25:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"159"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"chef_id\": 10,\n    \"image\": \"https://foodapp-new.s3-ap-southeast-1.amazonaws.com/menus/10/ninja.jfif\",\n    \"menu_image_id\": 1,\n    \"message\": \"Successfully updated menu image\"\n}"}],"_postman_id":"99e1e9a6-94a2-469f-9eda-589e38b57a9e"},{"name":"/menu_images/delete/<menu_image_id>","id":"61850f8e-0a26-4723-aaa6-53a545f6d88b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menu_images/delete/1","description":"<p>Delete a specific menu image</p>\n","urlObject":{"protocol":"https","path":["api","v1","menu_images","delete","1"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"a5499cb2-60c5-49bc-a5fc-d9e8f2d685ff","name":"Successful delete","originalRequest":{"method":"DELETE","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/menu_images/delete/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 11:26:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"85"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"menu_image_id\": \"1\",\n    \"message\": \"Successfully deleted this image\",\n    \"status\": \"Success\"\n}"}],"_postman_id":"61850f8e-0a26-4723-aaa6-53a545f6d88b"}],"id":"9f9a2ef4-54e2-46a2-895c-e098c17fbb9e","_postman_id":"9f9a2ef4-54e2-46a2-895c-e098c17fbb9e","description":""},{"name":"Likes","item":[{"name":"/likes/new","id":"e30d22f5-1cb4-4841-8335-352bb0b5ad8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": 21,\r\n    \"chef_id\": 14\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/likes/new","description":"<p>User clicks on like, creates a new like for the chef</p>\n","urlObject":{"protocol":"https","path":["api","v1","likes","new"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"2fde9c9e-38ce-4dec-af09-374dc2f03e02","name":"Successful like","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": 1,\r\n    \"chef_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/likes/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"62"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Wed, 21 Apr 2021 16:07:55 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Liked successfully\",\n    \"status\": \"Success\"\n}"},{"id":"ac76949f-0785-444d-9341-7fb79cd457d9","name":"Like existed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": 1,\r\n    \"chef_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/likes/new"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"71"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Wed, 21 Apr 2021 16:08:30 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User already liked this chef\",\n    \"status\": \"failed\"\n}"},{"id":"e8d7f7ac-f1cc-448b-9fad-2fff60e48693","name":"User does not exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": 10,\r\n    \"chef_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/likes/new"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"62"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 14:34:28 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User does not exist\",\n    \"status\": \"failed\"\n}"},{"id":"32f2ed9c-f921-4ac6-bbd8-48802f72ce40","name":"Chef does not exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": 3,\r\n    \"chef_id\": 20\r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/likes/new"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"62"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 14:34:52 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Chef does not exist\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"e30d22f5-1cb4-4841-8335-352bb0b5ad8f"},{"name":"/likes/<chef_id>","id":"9501403f-7bbf-435d-a436-b14f6b3dec7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/likes/14","description":"<p>Return ALL likes for the chef</p>\n","urlObject":{"protocol":"https","path":["api","v1","likes","14"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"b387ac19-d113-4deb-9866-830b2dbc88aa","name":"Successful","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/likes/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"54"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Wed, 21 Apr 2021 16:16:55 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"chef_id\": \"2\",\n        \"no_of_likes\": 2\n    }\n]"},{"id":"734985cd-3448-40e6-8c85-0e538521ab5d","name":"Zero likes","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/likes/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"54"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Wed, 21 Apr 2021 16:17:25 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"chef_id\": \"3\",\n        \"no_of_likes\": 0\n    }\n]"}],"_postman_id":"9501403f-7bbf-435d-a436-b14f6b3dec7f"},{"name":"/likes/delete/<like_id>","id":"0a57c52c-32ab-4468-a2ec-4de8b0f6cf28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/likes/delete/1","description":"<p>Remove user's like for chef</p>\n","urlObject":{"protocol":"https","path":["api","v1","likes","delete","1"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"3a4d60b0-c0b6-4bc5-8ead-7cafd57750ec","name":"Success","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/likes/delete/7"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"64"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 16:53:49 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"successfully deleted\",\n    \"status\": \"success\"\n}"},{"id":"a9b3128b-39f9-4ee8-8d74-fe2fba2ac69e","name":"Failed","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/likes/delete/7"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"97"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 16:54:01 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"this 'like' no longer exist or you might deleted twice\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"0a57c52c-32ab-4468-a2ec-4de8b0f6cf28"}],"id":"bad06436-295c-4db6-a471-de9914f71e57","_postman_id":"bad06436-295c-4db6-a471-de9914f71e57","description":""},{"name":"Reviews","item":[{"name":"/reviews/new","id":"07139112-7c1f-4909-bbc0-15c417956acc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsInR5cGUiOiJVc2VyIn0.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTYxOTUzNDIyMywianRpIjoiZmFhNGEyN2YtYTFkYy00Y2EzLWIzMmMtODU1NjA5OWFmNWViIiwibmJmIjoxNjE5NTM0MjIzLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoidXNlcjE0QG5leHQuY29tIiwiZXhwIjoxNjE5NTM3ODIzfQ.SfJXCst3LuDGLEokd9QSKzN89t-S0hdS1NY_Ek70sD0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"chef\" :18, \r\n    \"comment\": \"Awesome\",\r\n    \"rating\": 4.5  \r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/reviews/new","description":"<p>User create new review for chef</p>\n","urlObject":{"protocol":"https","path":["api","v1","reviews","new"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"1e6ee712-6f78-4418-9df4-78e876413781","name":"User does not exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user\": 1,\r\n    \"chef\" :2, \r\n    \"comment\": \"Awesome\",\r\n    \"rating\": 4.5  \r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/reviews/new"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"62"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 17:00:15 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User does not exist\",\n    \"status\": \"failed\"\n}"},{"id":"023b8ecf-196a-4611-a48f-43a02a415983","name":"Chef does not exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user\": 34,\r\n    \"chef\" :2, \r\n    \"comment\": \"Awesome\",\r\n    \"rating\": 4.5  \r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/reviews/new"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"62"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 17:05:39 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Chef does not exist\",\n    \"status\": \"failed\"\n}"},{"id":"557a8bae-f033-4b63-ac19-2707abd6661c","name":"Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user\": 34,\r\n    \"chef\" :24, \r\n    \"comment\": \"Awesome\",\r\n    \"rating\": 4.5  \r\n}","options":{"raw":{"language":"json"}}},"url":"https://foodapp2021.herokuapp.com/api/v1/reviews/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"75"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 17:06:03 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"successfully submitted a review\",\n    \"status\": \"success\"\n}"}],"_postman_id":"07139112-7c1f-4909-bbc0-15c417956acc"},{"name":"/reviews/","id":"f10489b9-7775-477d-bac3-c36492529ae8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/reviews/","description":"<p>Return all existing reviews for all chefs</p>\n","urlObject":{"protocol":"https","path":["api","v1","reviews",""],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"de7892c5-2eea-45c5-b8e0-4e2545fb7ac7","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/reviews/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"323"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Wed, 21 Apr 2021 16:33:44 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"chef_id\": 2,\n        \"comment\": \"Awesome\",\n        \"id\": 1,\n        \"rating\": 4.5,\n        \"user_id\": 1\n    },\n    {\n        \"chef_id\": 2,\n        \"comment\": \"Daebak\",\n        \"id\": 4,\n        \"rating\": 4,\n        \"user_id\": 1\n    },\n    {\n        \"chef_id\": 2,\n        \"comment\": \"Horrible\",\n        \"id\": 5,\n        \"rating\": 2,\n        \"user_id\": 1\n    }\n]"},{"id":"3d4cd0a1-2e96-4c87-a663-e098ce7faa92","name":"No reviews","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/reviews/"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Wed, 21 Apr 2021 16:34:41 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No reviews yet\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"f10489b9-7775-477d-bac3-c36492529ae8"},{"name":"/reviews/<chef_id>","id":"b0e8ec9b-275c-44c6-8f6d-c58688f0bcba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/reviews/14","description":"<p>Return reviews for a Chef</p>\n","urlObject":{"protocol":"https","path":["api","v1","reviews","14"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"42a2a6c0-c2ba-4661-8c79-a57e8c0e5d48","name":"Chef doesnt exist","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/reviews/30"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"67"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Mon, 26 Apr 2021 17:10:56 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This chef does not exist\",\n    \"status\": \"Failed\"\n}"},{"id":"3cc220ad-d91b-4718-b438-32713cf7a5a7","name":"Successful","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/reviews/14"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 13:39:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"97"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"chef_reviews\": [\n        {\n            \"chef_id\": 14,\n            \"comment\": \"Awesome\",\n            \"id\": 1,\n            \"rating\": 4.5,\n            \"user_id\": 21\n        }\n    ],\n    \"count\": 1\n}"},{"id":"ae211801-449b-4b29-8bc2-2ae9df65a29d","name":"Empty","originalRequest":{"method":"GET","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/reviews/15"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Tue, 27 Apr 2021 13:44:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"b0e8ec9b-275c-44c6-8f6d-c58688f0bcba"},{"name":"/reviews/delete/<review_id>","id":"2cedeb99-a9ce-4da6-bdad-822c3b022c7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://foodapp2021.herokuapp.com/api/v1/reviews/delete/1","description":"<p>Delete a specific review</p>\n","urlObject":{"protocol":"https","path":["api","v1","reviews","delete","1"],"host":["foodapp2021","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"5f1785ed-76dc-4231-aab2-62dec882c558","name":"Successful delete","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/v1/reviews/delete/10"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"72"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 14:48:14 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully delete a reivew\",\n    \"status\": \"success\"\n}"},{"id":"f04d3b03-eeb2-426d-8f91-01958a60e248","name":"Bad request","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/v1/reviews/delete/11"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"94"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/0.14.1 Python/3.7.10"},{"key":"Date","value":"Sat, 24 Apr 2021 14:48:40 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This review no longer exist or did not exist at all\",\n    \"status\": \"failed\"\n}"}],"_postman_id":"2cedeb99-a9ce-4da6-bdad-822c3b022c7e"}],"id":"66caa23c-d932-44ab-8533-845c465a0b90","_postman_id":"66caa23c-d932-44ab-8533-845c465a0b90","description":""}]}