{"info":{"_postman_id":"88f1bcd4-2515-4e2c-8589-de4df0751013","name":"Cafe & Wifi","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"15465500","collectionId":"88f1bcd4-2515-4e2c-8589-de4df0751013","publishedId":"2s9Y5VU4et","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-23T09:37:25.000Z"},"item":[{"name":"Search Cafes by Location","id":"f7e57bdb-b87c-454b-a08f-843ba47bf1eb","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.<br />Use the loc parameter to pass a location name.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["search"],"host":["127","0","0","1"],"query":[{"key":"loc","value":"Peckham"}],"variable":[]}},"response":[],"_postman_id":"f7e57bdb-b87c-454b-a08f-843ba47bf1eb"},{"name":"Get All Cafes","id":"bd49df34-21ab-4f00-ae4a-be3f9016f2f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/all","description":"<p>The /all route will get all the cafes from the cafe database.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd49df34-21ab-4f00-ae4a-be3f9016f2f9"},{"name":"Get Random Cafe","id":"26416143-bf4c-42bc-ab08-405ce6b855f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/random","description":"<p>The /random route will randomly choose a cafe from the cafe database.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["random"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"26416143-bf4c-42bc-ab08-405ce6b855f3"},{"name":"Add Cafe","id":"19f5a32f-7c9b-4973-9403-86de898c18a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Kaffeine","type":"text"},{"key":"map_url","value":"https://www.google.com/maps/place/Kaffeine/@51.5184697,-0.1429749,17z/data=!3m1!4b1!4m6!3m5!1s0x48761b2a71944017:0x35e5392fd336333!8m2!3d51.5184664!4d-0.1404!16s%2Fg%2F1v9gtyvf?entry=ttu","type":"text"},{"key":"img_url","value":"https://lh5.googleusercontent.com/p/AF1QipORO2Pe28FynqkLcaBLB5S8hHr-qurXq8FBD5ji=w408-h579-k-no","type":"text"},{"key":"location","value":"London","type":"text"},{"key":"has_sockets","value":"False","type":"text"},{"key":"has_toilet","value":"True","type":"text"},{"key":"has_wifi","value":"True","type":"text"},{"key":"can_take_calls","value":"True","type":"text"},{"key":"seats","value":"10-20","type":"text"},{"key":"coffee_price","value":"£3.30","type":"text"}]},"url":"http://127.0.0.1:5000/add","description":"<p>The /add route will add a cafe to the database.  </p>\n<p>The body of the request will need to supply keys and values to each of the keys stated below:</p>\n<ul>\n<li>name</li>\n<li>map_url</li>\n<li>img_url</li>\n<li>location</li>\n<li>has_sockets</li>\n<li>has_toilet</li>\n<li>has_wifi</li>\n<li>can_take_calls</li>\n<li>seats</li>\n<li>coffee_price</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["add"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"19f5a32f-7c9b-4973-9403-86de898c18a2"},{"name":"Update Price of Coffee at Cafe","id":"94691149-93cf-417a-8fb8-03d3bd08a69e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"http://127.0.0.1:5000/update-price/22?new_price=£2.90","description":"<p>The /update route will allow you to update the price of a specific cafe.  </p>\n<p>Following the /update and a \"/\" you will need to provide the cafe ID before having the \"new_price\" key-value pair appended to the URL.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["update-price","22"],"host":["127","0","0","1"],"query":[{"key":"new_price","value":"£2.90"}],"variable":[]}},"response":[],"_postman_id":"94691149-93cf-417a-8fb8-03d3bd08a69e"},{"name":"Delete Cafe by ID","id":"3d38d88e-d324-40c6-8fbc-1a1554ec57c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:5000/report-closed/22?api_key=TopSecretAPIKey","description":"<p>The /delete route will allow you to delete a specific cafe.</p>\n<p>Following the /delete and a \"/\" you will need to provide the cafe ID before having the route is able to delete the cafe by the ID provided.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["report-closed","22"],"host":["127","0","0","1"],"query":[{"key":"api_key","value":"TopSecretAPIKey"}],"variable":[]}},"response":[],"_postman_id":"3d38d88e-d324-40c6-8fbc-1a1554ec57c3"}]}