{"info":{"_postman_id":"ff83e597-6205-4216-a04d-71ff128dafd7","name":"Cafe & Wifi","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"17076610","collectionId":"ff83e597-6205-4216-a04d-71ff128dafd7","publishedId":"Tzz7NxgS","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-08-13T12:20:40.000Z"},"item":[{"name":"Get All Cafes","id":"47eaf748-0b1f-49ca-9810-07324b6b5a69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/all","description":"<p>Gets all information about all of the cafes in the database.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"47eaf748-0b1f-49ca-9810-07324b6b5a69"},{"name":"Get Random Cafe","id":"bfe9e8ef-6c46-42a9-8629-048d37e30c97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/random","description":"<p>Gets information for 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":"bfe9e8ef-6c46-42a9-8629-048d37e30c97"},{"name":"Search Cafes By Location","id":"cf51a5bb-95c7-4d07-9dfc-1ad321f491e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/search/","description":"<p>The <code>search</code> route will search the cafe database for a cafe that matches the location queried.\nUse the <code>loc</code> parameter to pass a location name.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["search",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf51a5bb-95c7-4d07-9dfc-1ad321f491e0"},{"name":"Post New Cafe","id":"15f751c5-e5a1-4a96-b1bc-3c2e6f68ea0d","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":"location","value":"Soho","type":"text"},{"key":"seats","value":"20-30","type":"text"},{"key":"has_toilet","value":"True","type":"text"},{"key":"has_wifi","value":"True","type":"text"},{"key":"has_sockets","value":"False","type":"text"},{"key":"can_take_calls","value":"False","type":"text"},{"key":"coffee_price","value":"£3.20","type":"text"}]},"url":"http://127.0.0.1:5000/add","description":"<p>Adds a new cafe to the database.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["add"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"15f751c5-e5a1-4a96-b1bc-3c2e6f68ea0d"},{"name":"Update Coffee Price for Cafe","id":"91cdc83d-a0b7-4c31-85db-5fb841e6141d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"http://127.0.0.1:5000/update-price/21?new_price=£3.8","description":"<p>Updates the price of a cafe in the database.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["update-price","21"],"host":["127","0","0","1"],"query":[{"key":"new_price","value":"£3.8"}],"variable":[]}},"response":[],"_postman_id":"91cdc83d-a0b7-4c31-85db-5fb841e6141d"},{"name":"Delete a Cafe By Id","id":"762771b9-7d90-4d65-b896-ed033899cc4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:5000/report-closed/19?api-key=TopSecretAPIKey","description":"<p>Deletes by a cafe by id from the database</p>\n","urlObject":{"protocol":"http","port":"5000","path":["report-closed","19"],"host":["127","0","0","1"],"query":[{"key":"api-key","value":"TopSecretAPIKey"}],"variable":[]}},"response":[],"_postman_id":"762771b9-7d90-4d65-b896-ed033899cc4c"}]}