{"info":{"_postman_id":"13cd6a37-31d7-4a8f-b3a7-bba983ff5393","name":"Cafe & Wifi","description":"<html><head></head><body><p>A Cafe and Wifi DataBase Management system based on python with Flask, SQLAlchemy.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"42954302","collectionId":"13cd6a37-31d7-4a8f-b3a7-bba983ff5393","publishedId":"2sAYk8v3qt","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-12T09:00:12.000Z"},"item":[{"name":"Get a random Cafe","id":"6f88c3f0-38b4-4127-8d72-c5e9f6810987","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://127.0.0.1:5000/random","description":"<p>The /random route will give a random cafe from the dataset of the cafes available for cafes in london\nYou can go ahead and travel to the cafe and enjoy your day there!</p>\n","urlObject":{"protocol":"http","port":"5000","path":["random"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f88c3f0-38b4-4127-8d72-c5e9f6810987"},{"name":"Search Cade by Location","id":"79891176-ffb5-4994-bb17-4c6410488c07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://127.0.0.1:5000/search","description":"<p>The /search route will search for a cafe based on the input parameter passed in 'loc' and will search through dataset and return all cafes available in the search area.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["search"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"79891176-ffb5-4994-bb17-4c6410488c07"},{"name":"Get all Cafes","id":"61adf87d-22d1-40d7-ae9a-c0bad2fe1ee7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://127.0.0.1:5000/all","description":"<p>the /all route returns all cafes present in the database.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"61adf87d-22d1-40d7-ae9a-c0bad2fe1ee7"},{"name":"Add a New Cafe","id":"ae8595fe-b68f-46e0-8acd-a02c7ddc2f79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Nayan's Cafe","type":"text","uuid":"bf390ef8-aeb9-4527-9f9d-7d0eb865a3b5"},{"key":"map_url","value":"maps.google.com","type":"text","uuid":"bef5f6fb-55c4-4bb9-bf7e-c9374ffe7bce"},{"key":"img_url","value":"google.com/png/idontknow","type":"text","uuid":"3528f4d8-355f-45bd-b91d-4eb04c9eb091"},{"key":"loc","value":"Peckham","type":"text","uuid":"1b0a5d5b-a21c-4577-851b-79507d3156d2"},{"key":"sockets","value":"1","type":"text","uuid":"70d00489-dd5d-428b-88a6-0cfed16bf59c"},{"key":"wifi","value":"1","type":"text","uuid":"f00d3f15-ff59-4356-a916-176bd14b1e00"},{"key":"seats","value":"4","type":"text","uuid":"a570530e-b2a7-4a1e-ac13-9889f36c5b6a"},{"key":"calls","value":"1","type":"text","uuid":"56eb08d6-5c2b-4ac6-969b-9e5df2a7f363"},{"key":"coffee_price","value":"£0.80","type":"text","uuid":"2007fff9-2312-469b-913b-c6098922d67a"},{"key":"toilet","value":"0","type":"text","uuid":"fc0b8894-d0b5-48d4-b7e3-bd74f16bbaee"}]},"url":"http://127.0.0.1:5000/add","description":"<p>The route /add allows you to add new cafe in the dataset by passing the required params mentioned in the documentation</p>\n","urlObject":{"protocol":"http","port":"5000","path":["add"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ae8595fe-b68f-46e0-8acd-a02c7ddc2f79"},{"name":"Update Coffee Price from Cafe ID","id":"84273904-0301-443d-b86d-4ddcd512b756","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"http://127.0.0.1:5000/update-price/21?new_price=3","urlObject":{"protocol":"http","port":"5000","path":["update-price","21"],"host":["127","0","0","1"],"query":[{"key":"new_price","value":"3"}],"variable":[]}},"response":[],"_postman_id":"84273904-0301-443d-b86d-4ddcd512b756"},{"name":"Delete Cafe By Cafe_ID and API KEY","id":"a094da95-6028-4697-8270-4d7bfabba309","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:5000/report-closed/24?api_key=SomeKey","description":"<p>The anchor /report-closed/<a href=\"https://null\">int:cafe_id</a>?api_key=SOMEKEY deletes the CafeID from the database based on the cafe_id and the api key provided</p>\n","urlObject":{"protocol":"http","port":"5000","path":["report-closed","24"],"host":["127","0","0","1"],"query":[{"key":"api_key","value":"SomeKey"}],"variable":[]}},"response":[],"_postman_id":"a094da95-6028-4697-8270-4d7bfabba309"}]}