{"info":{"_postman_id":"d94b17f4-b230-4290-b77e-c2b72e46a1bc","name":"Cafe & Wifi","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"2568017","collectionId":"d94b17f4-b230-4290-b77e-c2b72e46a1bc","publishedId":"TVRhd9qR","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-10-07T11:52:46.000Z"},"item":[{"name":"Get All Cafes","id":"0d46f5c0-0b41-4bf4-af71-70e0c6a7f475","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:5000/all","description":"<p>This route returns a json with the data from all cafes in the database.</p>\n","urlObject":{"port":"5000","path":["all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d46f5c0-0b41-4bf4-af71-70e0c6a7f475"},{"name":"Get Random Cafe","id":"cc8be04a-fe41-4bd1-8aa2-0fae1a304142","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:5000/random","description":"<p>Returns a random cafe from the database.</p>\n","urlObject":{"port":"5000","path":["random"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc8be04a-fe41-4bd1-8aa2-0fae1a304142"},{"name":"Search Cafes By Location","id":"9fc7e046-055f-446b-aebf-5275b9bec52e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:5000/search?loc=Peckham","description":"<p>The /search route will search the cafe database for a cafe that matches the location queried. \nUse the loc parameter to pass a location name.</p>\n","urlObject":{"port":"5000","path":["search"],"host":["localhost"],"query":[{"key":"loc","value":"Peckham"}],"variable":[]}},"response":[],"_postman_id":"9fc7e046-055f-446b-aebf-5275b9bec52e"},{"name":"Post New Cafe","id":"7d743e45-bb91-4066-a475-92e03c590676","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"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":"toilet","value":"True","type":"text"},{"key":"wifi","value":"True","type":"text"},{"key":"sockets","value":"True","type":"text"},{"key":"coffee_price","value":"£3.20","type":"text"},{"key":"calls","value":"True","type":"text"},{"key":"seats","value":"20-30","type":"text"}]},"url":"localhost:5000/add?api-key=TopSecretAPIKey","description":"<p>Adds a new cafe entry to the database. \nRequires authentication with api-key parameter.</p>\n","urlObject":{"port":"5000","path":["add"],"host":["localhost"],"query":[{"key":"api-key","value":"TopSecretAPIKey"}],"variable":[]}},"response":[],"_postman_id":"7d743e45-bb91-4066-a475-92e03c590676"},{"name":"Update Cofee Price For Cafe","id":"e577e8ac-1b14-401f-9843-50348146e65e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"localhost:5000/update-price/3?new_price=£3.80","description":"<p>Update the price of a black coffee at a particular cafe. \nUsing the id and new_price parameters.</p>\n","urlObject":{"port":"5000","path":["update-price","3"],"host":["localhost"],"query":[{"key":"new_price","value":"£3.80"}],"variable":[]}},"response":[],"_postman_id":"e577e8ac-1b14-401f-9843-50348146e65e"},{"name":"Delete a Cafe By Id","id":"091a98b8-f0e2-4164-b603-40917ce2ffa1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:5000/report-closed/123?api-key=TopSecretAPIKey","description":"<p>Deletes a cafe from the database.\nYou will need to provide the id of the cafe to delete as a route. \nYou will also need to provide a valid API for this operation to be allowed.</p>\n","urlObject":{"port":"5000","path":["report-closed","123"],"host":["localhost"],"query":[{"key":"api-key","value":"TopSecretAPIKey"}],"variable":[]}},"response":[],"_postman_id":"091a98b8-f0e2-4164-b603-40917ce2ffa1"}]}