{"info":{"_postman_id":"1d26e9cd-6c2d-4bb4-b441-a5de9356af97","name":"Cafe & Wifi","description":"<html><head></head><body><p>An API which provides users details regarding Cafes in London and allows users to GET cafes data, POST a new cafe entry, PATCH update the coffee price of certain cafe &amp; DELETE a cafe from the database.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17703132","collectionId":"1d26e9cd-6c2d-4bb4-b441-a5de9356af97","publishedId":"2s7Z7ZoZMz","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-09-21T16:27:53.000Z"},"item":[{"name":"GET all cafes","id":"723a77ee-b9f8-4103-8a73-9e325ff85885","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"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":"723a77ee-b9f8-4103-8a73-9e325ff85885"},{"name":"GET random cafe","id":"470f6a61-2963-4b70-abf5-5731f5e7423b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"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":"470f6a61-2963-4b70-abf5-5731f5e7423b"},{"name":"Search Cafes by location","id":"5d81b41f-8b2c-45c4-8fda-073482b910b7","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":"5d81b41f-8b2c-45c4-8fda-073482b910b7"},{"name":"POST a new cafe","id":"ddfa7750-1fe2-4a05-97e5-6aee4a176fac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Timberyard","type":"text"},{"key":"map_url","value":"https://google.com/london","type":"text"},{"key":"img_url","value":"https://google.com/timeryard","type":"text"},{"key":"location","value":"TimesSquare","type":"text"},{"key":"seats","value":"20-30","type":"text"},{"key":"has_toilet","value":"1","type":"text"},{"key":"has_wifi","value":"0","type":"text"},{"key":"has_sockets","value":"1","type":"text"},{"key":"can_take_calls","value":"0","type":"text"},{"key":"coffee_price","value":"$20","type":"text"}]},"url":"http://127.0.0.1:5000/add","description":"<p>Adds a new cafe entry to the database. Requires authentication with api-key parameter.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["add"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ddfa7750-1fe2-4a05-97e5-6aee4a176fac"},{"name":"PATCH update coffee pricee","id":"853f0199-5585-4823-9d00-e8b82b421f1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"http://127.0.0.1:5000/update-price/1?new_price=$5","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","1"],"host":["127","0","0","1"],"query":[{"key":"new_price","value":"$5"}],"variable":[]}},"response":[],"_postman_id":"853f0199-5585-4823-9d00-e8b82b421f1c"},{"name":"DELETE a cafe","id":"0dfc87a5-5476-43a9-93c7-7014d9cc81e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:5000/report-closed/9?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 for this operation to be allowed.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["report-closed","9"],"host":["127","0","0","1"],"query":[{"key":"api_key","value":"TopSecretAPIKey"}],"variable":[]}},"response":[],"_postman_id":"0dfc87a5-5476-43a9-93c7-7014d9cc81e9"}]}