{"info":{"_postman_id":"c6f125d1-4454-4569-a04c-e90a8ce2fc3e","name":"Cafe & Wifi","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"27026310","collectionId":"c6f125d1-4454-4569-a04c-e90a8ce2fc3e","publishedId":"2s93Y3vMAJ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-04-21T08:48:08.000Z"},"item":[{"name":"Get All Cafes","id":"1e14eda4-c4e7-4d17-8c2a-552fca9305e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/all","description":"<p>The /all route will return all the cafes in cafe database.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"69a998e8-86d4-47ff-9492-3f2eaa8a0734","name":"Get All Cafes","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/2.2.3 Python/3.11.4"},{"key":"Date","value":"Tue, 05 Sep 2023 10:14:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"10012"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"cafes\": [\n        {\n            \"can_take_calls\": true,\n            \"coffee_price\": \"£2.40\",\n            \"has_sockets\": true,\n            \"has_toilet\": true,\n            \"has_wifi\": false,\n            \"id\": 1,\n            \"img_url\": \"https://atlondonbridge.com/wp-content/uploads/2019/02/Pano_9758_9761-Edit-190918_LTS_Science_Gallery-Medium-Crop-V2.jpg\",\n            \"location\": \"London Bridge\",\n            \"map_url\": \"https://g.page/scigallerylon?share\",\n            \"name\": \"Science Gallery London\",\n            \"seats\": \"50+\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£2.75\",\n            \"has_sockets\": true,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 2,\n            \"img_url\": \"https://images.squarespace-cdn.com/content/v1/5734f3ff4d088e2c5b08fe13/1555848382269-9F13FE1WQDNUUDQOAOXF/ke17ZwdGBToddI8pDm48kAeyi0pcxjZfLZiASAF9yCBZw-zPPgdn4jUwVcJE1ZvWQUxwkmyExglNqGp0IvTJZUJFbgE-7XRK3dMEBRBhUpzV8NE8s7067ZLWyi1jRvJklJnlBFEUyq1al9AqaQ7pI4DcRJq_Lf3JCtFMXgpPQyk/copeland-park-bar-peckham\",\n            \"location\": \"Peckham\",\n            \"map_url\": \"https://g.page/CopelandSocial?share\",\n            \"name\": \"Social - Copeland Road\",\n            \"seats\": \"20-30\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£2.75\",\n            \"has_sockets\": true,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 3,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipOMzXpKAQNyUvrjTGHqCgWk8spwnzwP8Ml2aDKt=s0\",\n            \"location\": \"Peckham\",\n            \"map_url\": \"https://g.page/one-all-cafe?share\",\n            \"name\": \"One & All Cafe Peckham\",\n            \"seats\": \"20-30\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£2.80\",\n            \"has_sockets\": true,\n            \"has_toilet\": false,\n            \"has_wifi\": true,\n            \"id\": 4,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipPBAt6bYna7pv5c7e_PhCDPMKPb6oFf6kMT2VQ1=s0\",\n            \"location\": \"Peckham\",\n            \"map_url\": \"https://www.google.com/maps/place/Old+Spike+Roastery/@51.4651552,-0.0666088,17z/data=!4m12!1m6!3m5!1s0x487603a3a7dd838d:0x4105b39b30a737cf!2sOld+Spike+Roastery!8m2!3d51.4651552!4d-0.0666088!3m4!1s0x487603a3a7dd838d:0x4105b39b30a737cf!8m2!3d51.4651552!4d-0.0666088\",\n            \"name\": \"Old Spike\",\n            \"seats\": \"0-10\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£2.65\",\n            \"has_sockets\": true,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 5,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipM9Dz_QMkOF2da1aNLuTzS_vPvVWBnE84rZLK_G=s0\",\n            \"location\": \"Bermondsey\",\n            \"map_url\": \"https://goo.gl/maps/ugP2B1AV7FELHSgn6\",\n            \"name\": \"Fuckoffee Bermondsey\",\n            \"seats\": \"20-30\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£2.80\",\n            \"has_sockets\": true,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 6,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipN-C650VmJ1XZhzOIBTg1bUu3_to_GHpyrmUplt=s0\",\n            \"location\": \"Hackney\",\n            \"map_url\": \"https://goo.gl/maps/DWnwaeeiwdYsBkEH9\",\n            \"name\": \"Mare Street Market\",\n            \"seats\": \"50+\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£3.00\",\n            \"has_sockets\": true,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 7,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipP_NbZH7A1fIQyp5pRm1jOGwzKsDWewaxka6vDt=s0\",\n            \"location\": \"Shoreditch\",\n            \"map_url\": \"https://g.page/acehotellondon?share\",\n            \"name\": \"Ace Hotel Shoreditch\",\n            \"seats\": \"50+\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£2.10\",\n            \"has_sockets\": true,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 8,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipPnOfo7wTICdiAyybF3iFhD3l5aoQjSO-GErma1=s0\",\n            \"location\": \"Clerkenwell\",\n            \"map_url\": \"https://goo.gl/maps/D9nXNYK3fa1cxwpK8\",\n            \"name\": \"Goswell Road Coffee\",\n            \"seats\": \"10-20\"\n        },\n        {\n            \"can_take_calls\": true,\n            \"coffee_price\": \"£2.30\",\n            \"has_sockets\": true,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 9,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipMrdTyRRozGBltwxAseQ4QeuNhbED6meQXlCPsx=s0\",\n            \"location\": \"London Bridge\",\n            \"map_url\": \"https://goo.gl/maps/LU1imQzBCRLFBxKUA\",\n            \"name\": \"The Southwark Cathedral Cafe\",\n            \"seats\": \"20-30\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£2.70\",\n            \"has_sockets\": false,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 10,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipNtHqqIc3kwhpjknrVcMdkhmpA77LDYKmpOJlxf=s0\",\n            \"location\": \"Whitechapel\",\n            \"map_url\": \"https://goo.gl/maps/v5tzRBVhPFueYp4x6\",\n            \"name\": \"Trade Commercial Road\",\n            \"seats\": \"20-30\"\n        },\n        {\n            \"can_take_calls\": true,\n            \"coffee_price\": \"£2.70\",\n            \"has_sockets\": false,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 11,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipOFimpFQmUORVGg0ER3lrfEiEnKpnYJck5guFqC=s0\",\n            \"location\": \"Bankside\",\n            \"map_url\": \"https://goo.gl/maps/6RvPHyhsDDUPs1ox8\",\n            \"name\": \"The Tate Modern Cafe\",\n            \"seats\": \"30-40\"\n        },\n        {\n            \"can_take_calls\": true,\n            \"coffee_price\": \"£2.50\",\n            \"has_sockets\": true,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 12,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipPyJHFtVzxor4RyQrT-ZEk7ej7OxvmIQYZUHe6G=s0\",\n            \"location\": \"Clerkenwell\",\n            \"map_url\": \"https://goo.gl/maps/HC4e9FJL48kLRH8W9\",\n            \"name\": \"Forage Cafe\",\n            \"seats\": \"20-30\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£2.80\",\n            \"has_sockets\": true,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 13,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipNJQIg-6YTOZhbLu12yGPN3klDxygs7cNAjEo0C=s0\",\n            \"location\": \"Shoreditch\",\n            \"map_url\": \"https://g.page/citizenm-london-shoreditch?share\",\n            \"name\": \"Citizen M Hotel Shoreditch\",\n            \"seats\": \"30-40\"\n        },\n        {\n            \"can_take_calls\": true,\n            \"coffee_price\": \"£3.00\",\n            \"has_sockets\": false,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 14,\n            \"img_url\": \"https://images.adsttc.com/media/images/5014/ec99/28ba/0d58/2800/0d0f/large_jpg/stringio.jpg?1414576924\",\n            \"location\": \"Barbican\",\n            \"map_url\": \"https://goo.gl/maps/XPrcFj91LsQBvUa27\",\n            \"name\": \"Barbican Centre\",\n            \"seats\": \"50+\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£2.60\",\n            \"has_sockets\": false,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 15,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipOL6jxxpE_D3YS-Zzih61DqNXJKvRIDFiP6ieUI=s0\",\n            \"location\": \"Clerkenwell\",\n            \"map_url\": \"https://goo.gl/maps/mwAG272nQwSUc9bn8\",\n            \"name\": \"The Slaughtered Lamb\",\n            \"seats\": \"20-30\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£1.80\",\n            \"has_sockets\": false,\n            \"has_toilet\": false,\n            \"has_wifi\": true,\n            \"id\": 16,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipOchpT9ipgb7tpqglcTKpp2E8kZhsKvlYjUZ4e1=s0\",\n            \"location\": \"South Kensington\",\n            \"map_url\": \"https://goo.gl/maps/GPFSEuGEiDvQG8BH7\",\n            \"name\": \"Fernandez and Wells Exhibition Road\",\n            \"seats\": \"10-20\"\n        },\n        {\n            \"can_take_calls\": true,\n            \"coffee_price\": \"£2.60\",\n            \"has_sockets\": true,\n            \"has_toilet\": false,\n            \"has_wifi\": true,\n            \"id\": 17,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipOZ3WDAAxphLu657afVVATJ5TGxtturIOr8gt8u=s0\",\n            \"location\": \"Whitechapel\",\n            \"map_url\": \"https://goo.gl/maps/xv29seioiETAAZgN9\",\n            \"name\": \"Whitechapel Grind\",\n            \"seats\": \"30-40\"\n        },\n        {\n            \"can_take_calls\": true,\n            \"coffee_price\": \"£2.60\",\n            \"has_sockets\": true,\n            \"has_toilet\": false,\n            \"has_wifi\": true,\n            \"id\": 18,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipOutkI7wjWNXiPSTdf8CX0jXwyVHFTwFnVhyVJE=s0\",\n            \"location\": \"Peckham\",\n            \"map_url\": \"https://goo.gl/maps/qpcpX7MWhFSS1qxH9\",\n            \"name\": \"The Peckham Pelican\",\n            \"seats\": \"0 - 10\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£2.00\",\n            \"has_sockets\": true,\n            \"has_toilet\": false,\n            \"has_wifi\": true,\n            \"id\": 19,\n            \"img_url\": \"https://www.nhm.ac.uk/content/dam/nhmwww/business-services/filming/Earth-Sciences-Library-1.jpg\",\n            \"location\": \"South Kensington\",\n            \"map_url\": \"https://goo.gl/maps/VU2PwnDDtH1WqCnK7\",\n            \"name\": \"Natural History Museum Library\",\n            \"seats\": \"40-50\"\n        },\n        {\n            \"can_take_calls\": false,\n            \"coffee_price\": \"£2.80\",\n            \"has_sockets\": true,\n            \"has_toilet\": false,\n            \"has_wifi\": true,\n            \"id\": 20,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipNlBWFgXBiP9YjKARy4dgjHGePOmtsfuQPRwGvb=s0\",\n            \"location\": \"Shoreditch\",\n            \"map_url\": \"https://goo.gl/maps/gYX271NxyuawiMcK8\",\n            \"name\": \"The Bike Shed\",\n            \"seats\": \"10-20\"\n        },\n        {\n            \"can_take_calls\": true,\n            \"coffee_price\": \"£2.40\",\n            \"has_sockets\": true,\n            \"has_toilet\": false,\n            \"has_wifi\": true,\n            \"id\": 21,\n            \"img_url\": \"https://lh3.googleusercontent.com/p/AF1QipOhkJk2MBtFW1RydPU0zf3bf8upGkTQWyhDpXzZ=s0\",\n            \"location\": \"Borough\",\n            \"map_url\": \"https://g.page/fora---borough?share\",\n            \"name\": \"FORA Borough\",\n            \"seats\": \"20-30\"\n        },\n        {\n            \"can_take_calls\": true,\n            \"coffee_price\": \"£3.95\",\n            \"has_sockets\": true,\n            \"has_toilet\": true,\n            \"has_wifi\": true,\n            \"id\": 22,\n            \"img_url\": \"https://laptopfriendly.co/images/places/edinburgh/timberyard/timberyard%20other%20timberyard-other%20.jpg\",\n            \"location\": \"Lady Lawson Street\",\n            \"map_url\": \"https://www.google.com/maps?q=TIMBERYARD%2010%20Lady%20Lawson%20Street,%20EH3%209DS,%20Edinburgh\",\n            \"name\": \"Timberyard\",\n            \"seats\": \"20-30\"\n        }\n    ]\n}"}],"_postman_id":"1e14eda4-c4e7-4d17-8c2a-552fca9305e0"},{"name":"Get Random Cafe","id":"3b85b835-6a34-499c-a4f1-58aacaf71eae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/random","description":"<p>The /random route will return a random cafe from database.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["random"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b85b835-6a34-499c-a4f1-58aacaf71eae"},{"name":"Search Cafes By Location","id":"7a2df266-d5e6-4d25-af60-a06361cd8915","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/search?loc=Peckham","description":"<p>The /search route will search the cafe database for a cafe that matches the location queried.</p>\n<p>Use the loc parameter to pass a location name.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["search"],"host":["127","0","0","1"],"query":[{"description":{"content":"<p>The location of Cafe</p>\n","type":"text/plain"},"key":"loc","value":"Peckham"}],"variable":[]}},"response":[],"_postman_id":"7a2df266-d5e6-4d25-af60-a06361cd8915"},{"name":"Create A Cafe","id":"8f7fc6d5-77c7-4d41-b49d-e90e0d401103","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Timberyard","type":"text","description":"<p>The name of Cafe</p>\n"},{"key":"map_url","value":"https://www.google.com/maps?q=TIMBERYARD%2010%20Lady%20Lawson%20Street,%20EH3%209DS,%20Edinburgh","type":"text","description":"<p>Google map location URL of Cafe</p>\n"},{"key":"img_url","value":"https://laptopfriendly.co/images/places/edinburgh/timberyard/timberyard%20other%20timberyard-other%20.jpg","description":"<p>The image URL of Cafe</p>\n","type":"text"},{"key":"location","value":"Lady Lawson Street","description":"<p>The street name of the Cafe located</p>\n","type":"text"},{"key":"seats","value":"20-30","type":"text"},{"key":"has_toilet","value":"True","description":"<p>True if it has, otherwise leave it as null for False</p>\n","type":"text"},{"key":"has_wifi","value":"True","description":"<p>True if it has, otherwise leave it as null for False</p>\n","type":"text"},{"key":"has_sockets","value":"","description":"<p>True if it has, otherwise leave it as null for False</p>\n","type":"text"},{"key":"coffee_price","value":"£3.95","description":"<p>The average price of coffee, starting with currency symbol, such as $ for dollar</p>\n","type":"text"}]},"url":"http://127.0.0.1:5000/add","description":"<p>The /add route will create new record in cafe database.<br />Use name and map_url paramters to specifiy cafe name and map_url.</p>\n<p><strong>seats:</strong> range is acceptable</p>\n<p><strong>has_toilet/has_wifi/has_sockets/can_take_calls:</strong> input True if it has, otherwise leave it as null for False</p>\n","urlObject":{"protocol":"http","port":"5000","path":["add"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f7fc6d5-77c7-4d41-b49d-e90e0d401103"},{"name":"Update Coffee Price","id":"2091c8e5-e004-4118-8187-de5a372a6133","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"http://127.0.0.1:5000/update-price/22?new_price=£3.80","description":"<p>Update the coffee price for a cafe from the database.</p>\n<p>You will need to provide the id of the cafe to update as route.</p>\n<p>Use new_price as the parameter.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["update-price","22"],"host":["127","0","0","1"],"query":[{"key":"new_price","value":"£3.80"}],"variable":[]}},"response":[{"id":"6b580940-8d0c-491e-91db-c1d51e82bede","name":"Update Coffee Price 404","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"http://127.0.0.1:5000/update-price/24?new_price=£3.80","protocol":"http","host":["127","0","0","1"],"port":"5000","path":["update-price","24"],"query":[{"key":"new_price","value":"£3.80","description":"The average price of coffee, starting with currency symbol, such as $ for dollar"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/2.2.3 Python/3.11.2"},{"key":"Date","value":"Fri, 21 Apr 2023 08:11:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": \"Successfully updated the price.\"\n}"}],"_postman_id":"2091c8e5-e004-4118-8187-de5a372a6133"},{"name":"Delete a Cafe By Id","id":"980ae7e4-ade3-41a4-9a40-17acca2290a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:5000/report-closed/22?api-key=TopSecretAPIKey","description":"<p>Deletes a cafe from the database. You will need to provide the id of the cafe to delete as a route. You will also need to provide a valid API key for this operation allowed.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["report-closed","22"],"host":["127","0","0","1"],"query":[{"disabled":true,"description":{"content":"<p>Example: wrong API key</p>\n","type":"text/plain"},"key":"api-key","value":"wrongapikey"},{"description":{"content":"<p>Example: correct API key</p>\n","type":"text/plain"},"key":"api-key","value":"TopSecretAPIKey"}],"variable":[]}},"response":[],"_postman_id":"980ae7e4-ade3-41a4-9a40-17acca2290a9"}]}