{"info":{"_postman_id":"9a6e7bc7-e1a0-4999-94a4-3e51c2b62ae3","name":"Cafe & Wifi API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"14447538","collectionId":"9a6e7bc7-e1a0-4999-94a4-3e51c2b62ae3","publishedId":"TW73D58F","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-02-03T16:36:34.000Z"},"item":[{"name":"Search Cafes by Location","id":"8c6295b6-6e32-41c5-882a-c090e1b0eb93","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. 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":"8c6295b6-6e32-41c5-882a-c090e1b0eb93"},{"name":"Get All Cafes","id":"2616e1cc-054a-4777-8c0a-4609cad6f4de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://127.0.0.1:5000/all","description":"<p>This route returns a JSON with the data from all cafes in the database.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"2616e1cc-054a-4777-8c0a-4609cad6f4de"},{"name":"Get Random Cafe","id":"d178b678-a3da-4e43-910e-10caddf998a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://127.0.0.1:5000/random","description":"<p>Returns a random cafe from the database.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["random"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"d178b678-a3da-4e43-910e-10caddf998a9"},{"name":"Add New Cafe","id":"988a138e-6572-45ce-9362-c76081990147","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Timberyard","type":"text"},{"key":"map_url","value":"https://www.google.com/maps/place/TY+Seven+Dials/@51.5128761,-0.1295574,17z/data=!3m1!4b1!4m5!3m4!1s0x487604cd0ed11587:0x3feff9f93e76a986!8m2!3d51.5128761!4d-0.1273687?hl=en-GB","type":"text"},{"key":"img_url","value":"https://cdn.venuescanner.com/photos/qiUqV/aad7dea72a6fb6f3388ab27ba56b7740.jpg","type":"text"},{"key":"loc","value":"Soho","type":"text"},{"key":"seats","value":"15","type":"text"},{"key":"toilet","value":"True","type":"text"},{"key":"wifi","value":"True","type":"text"},{"key":"sockets","value":"False","type":"text"},{"key":"calls","value":"False","type":"text"},{"key":"coffee_price","value":"€3.99","type":"text"}]},"url":"http://127.0.0.1:5000/add","description":"<p>Adds a new cafe entry to the database.</p>\n<p>Requires authentication with an \"api-key\" value in the header.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["add"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"988a138e-6572-45ce-9362-c76081990147"},{"name":"Update Coffee Price","id":"de056225-1091-4b9c-8211-e5a2b521bedf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://127.0.0.1:5000/update-price/22?new_price=€2.99","description":"<p>Update the price of a black coffee at a particular cafe. Using the id and new_price parameters.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["update-price","22"],"host":["127","0","0","1"],"query":[{"key":"new_price","value":"€2.99"}],"variable":[]}},"response":[],"_postman_id":"de056225-1091-4b9c-8211-e5a2b521bedf"},{"name":"Remove Cafe by ID","id":"0dbca895-b96a-4938-a9ae-c672ced89ffd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:5000/report-closed/22","description":"<p>Deletes a cafe from the database. You will need to provide the id of the cafe to delete as a route.</p>\n<p>Requires authentication with an \"api-key\" value in the header.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["report-closed","22"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"0dbca895-b96a-4938-a9ae-c672ced89ffd"}]}