{"info":{"_postman_id":"11bb82a7-31d5-48ea-9f02-9372ccb41308","name":"Cafe & Wifi","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"27606790","collectionId":"11bb82a7-31d5-48ea-9f02-9372ccb41308","publishedId":"2s93m5zgep","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-05-24T15:03:46.000Z"},"item":[{"name":"Get All Cafes","id":"896a825d-08e7-48f6-84b6-cf95ea84f20e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"","value":"","description":"<p>This route returns a json with the data from all cafes in the database.</p>\n","type":"text"}],"url":"http://127.0.0.1:5000/all","urlObject":{"protocol":"http","port":"5000","path":["all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"896a825d-08e7-48f6-84b6-cf95ea84f20e"},{"name":"Get a Random Cafe","id":"9570439f-be52-4377-b83d-dd645f510df3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"","value":"","description":"<p>Returns a random cafe drom the database.</p>\n","type":"text"}],"url":"http://127.0.0.1:5000/random?","urlObject":{"protocol":"http","port":"5000","path":["random"],"host":["127","0","0","1"],"query":[{"key":null,"value":null}],"variable":[]}},"response":[],"_postman_id":"9570439f-be52-4377-b83d-dd645f510df3"},{"name":"Search Cafes by Location","id":"3517d242-b3e1-4e1d-9ccc-40f544c6ca2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/search?loc=Peckham","urlObject":{"protocol":"http","port":"5000","path":["search"],"host":["127","0","0","1"],"query":[{"description":{"content":"<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","type":"text/plain"},"key":"loc","value":"Peckham"}],"variable":[]}},"response":[],"_postman_id":"3517d242-b3e1-4e1d-9ccc-40f544c6ca2c"},{"name":"Post New Cafe","id":"6468755b-4c1c-4280-acf9-de34f61d7354","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"","value":"","description":"<p>Adds a new cafe entry to the database. </p>\n","type":"text"}],"url":"http://127.0.0.1:5000/add?=","urlObject":{"protocol":"http","port":"5000","path":["add"],"host":["127","0","0","1"],"query":[{"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"6468755b-4c1c-4280-acf9-de34f61d7354"},{"name":"Update Coffee Price By Cafe Id.","id":"aa8cd4be-c683-4976-919b-62699b4f3251","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Handsome Monk Coffee Roastery","type":"default"},{"key":"map_url","value":"https://www.google.com/maps/place/Handsome+Monk+Coffee+Roastery/@44.4269372,26.131919,17z/data=!4m6!3m5!1s0x40b1ff6a683d8bcb:0xefaf0a7e4e9961e0!8m2!3d44.4269334!4d26.1344939!16s%2Fg%2F11h5mqn4d8","type":"default"},{"key":"img_url","value":"https://scontent.fotp3-2.fna.fbcdn.net/v/t39.30808-6/327710844_874404293769678_357607209435193337_n.jpg?_nc_cat=109&ccb=1-7&_nc_sid=730e14&_nc_ohc=_pSn-V8YQh8AX8taEo4&_nc_ht=scontent.fotp3-2.fna&oh=00_AfB_7OfQyphlXy7Fq2n4FoQNYscK16DJocKEBuSR7rbgwA&oe=6472644E","type":"default"},{"key":"loc","value":"Strada Dristorului, Bucuresti","type":"default"},{"key":"sockets","value":"True","type":"default"},{"key":"toilet","value":"True","type":"default"},{"key":"wifi","value":"True","type":"default"},{"key":"calls","value":"False","type":"default"},{"key":"seats","value":"15","type":"default"},{"key":"coffee_price","value":"$4.5","type":"default"}]},"url":"http://127.0.0.1:5000/update-price/10?new_price=4","urlObject":{"protocol":"http","port":"5000","path":["update-price","10"],"host":["127","0","0","1"],"query":[{"description":{"content":"<p>Update the price of a black coffee at a particular cafe. Using the id and new_price parameters.</p>\n","type":"text/plain"},"key":"new_price","value":"4"}],"variable":[]}},"response":[],"_postman_id":"aa8cd4be-c683-4976-919b-62699b4f3251"},{"name":"Delete a Cosed Cafe","id":"88cde7b7-e0bd-4c99-81a4-2137cca07eb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:5000/report-closed/3?api-key=MyTopSecretAPIKey","urlObject":{"protocol":"http","port":"5000","path":["report-closed","3"],"host":["127","0","0","1"],"query":[{"description":{"content":"<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","type":"text/plain"},"key":"api-key","value":"MyTopSecretAPIKey"}],"variable":[]}},"response":[],"_postman_id":"88cde7b7-e0bd-4c99-81a4-2137cca07eb7"}]}