{"info":{"_postman_id":"288baff9-6969-47dc-adc9-cda737d2382a","name":"Cafe&Wifi","description":"<html><head></head><body><p>A Cafe&amp;Wifi API that allows user to fetch/search/random pick/update/add/delete a cafe store.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"28267276","collectionId":"288baff9-6969-47dc-adc9-cda737d2382a","publishedId":"2s93zB5MTa","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-06-30T07:51:22.000Z"},"item":[{"name":"Fetch All Cafes","id":"872272ee-7b55-457e-8722-1266de6e78e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/all","description":"<p>Fetch all cafes using <code>/all</code>endpoint.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"872272ee-7b55-457e-8722-1266de6e78e8"},{"name":"Pick Random Cafe","id":"1f22eaf9-b14a-4f70-ae59-d19beed0ae6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/random","description":"<p>Fetch one random cafe using <code>/random</code> endpoint.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["random"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f22eaf9-b14a-4f70-ae59-d19beed0ae6e"},{"name":"Search Cafes By Location","id":"7a1aca46-4314-4df6-84f1-24bfb6ab57de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/search?loc=Peckham","description":"<p>The <code>/search</code> endpoint will search the cafe database for cafes that matches the location queried. Use the <code>loc</code> parameter to pass the 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":"7a1aca46-4314-4df6-84f1-24bfb6ab57de"},{"name":"Add New Cafe","id":"bfdfd3e9-458d-4877-a27d-4899f6a056fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://127.0.0.1:5000/add?name=test&map_url=https://www.google.com/maps/place/Cafe+86/@37.5764362,-122.0269174,15z/data=!4m10!1m2!2m1!1scafes!3m6!1s0x808fbf705b6fee75:0xfbff667f0dcc87b8!8m2!3d37.5871058!4d-122.0227658!15sCgVjYWZlc1oHIgVjYWZlc5IBDGRlc3NlcnRfc2hvcJoBI0NoWkRTVWhOTUc5blMwVkpRMEZuU1VOU1gzSlRTMk5CRUFF4AEA!16s%2Fg%2F11rjtrcxdt?entry=ttu&img_url=https://lh5.googleusercontent.com/p/AF1QipNfwbBWMOTT7PNor-PDIe0UuMWVK6a-ruS4D37G=s516-k-no&location=test&has_sockets=True&has_toilet=True&has_wifi=True&can_take_calls=True&seats=30+&coffee_price=$20","description":"<p>Use <code>/add</code> endpoint along to add new cafe stores.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["add"],"host":["127","0","0","1"],"query":[{"key":"name","value":"test"},{"key":"map_url","value":"https://www.google.com/maps/place/Cafe+86/@37.5764362,-122.0269174,15z/data=!4m10!1m2!2m1!1scafes!3m6!1s0x808fbf705b6fee75:0xfbff667f0dcc87b8!8m2!3d37.5871058!4d-122.0227658!15sCgVjYWZlc1oHIgVjYWZlc5IBDGRlc3NlcnRfc2hvcJoBI0NoWkRTVWhOTUc5blMwVkpRMEZuU1VOU1gzSlRTMk5CRUFF4AEA!16s%2Fg%2F11rjtrcxdt?entry=ttu"},{"key":"img_url","value":"https://lh5.googleusercontent.com/p/AF1QipNfwbBWMOTT7PNor-PDIe0UuMWVK6a-ruS4D37G=s516-k-no"},{"key":"location","value":"test"},{"key":"has_sockets","value":"True"},{"key":"has_toilet","value":"True"},{"key":"has_wifi","value":"True"},{"key":"can_take_calls","value":"True"},{"key":"seats","value":"30+"},{"key":"coffee_price","value":"$20"}],"variable":[]}},"response":[],"_postman_id":"bfdfd3e9-458d-4877-a27d-4899f6a056fc"},{"name":"Update Cafe Price","id":"45052361-7845-40b5-9db3-9e130a0812a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"http://127.0.0.1:5000/update-price/22?new_price=$5","description":"<p>Updating price for specific store by passing parament <code>new_price</code> to route <code>/update-price/id</code></p>\n","urlObject":{"protocol":"http","port":"5000","path":["update-price","22"],"host":["127","0","0","1"],"query":[{"key":"new_price","value":"$5"}],"variable":[]}},"response":[],"_postman_id":"45052361-7845-40b5-9db3-9e130a0812a6"},{"name":"Delete Closed Store","id":"066d7449-06df-4016-92de-0bbf5c76c569","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:5000/report-closed/22?api-key=TopSecretAPIKey","description":"<p>Delete specific store using <code>/report-closed/&lt;int:id&gt;</code> route by setting <code>id</code> in route and pass <code>api-key</code> parameter.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["report-closed","22"],"host":["127","0","0","1"],"query":[{"key":"api-key","value":"TopSecretAPIKey"}],"variable":[]}},"response":[],"_postman_id":"066d7449-06df-4016-92de-0bbf5c76c569"}]}