{"info":{"_postman_id":"f4242c47-752c-4a80-a718-332e14d0ab63","name":"My Collection","description":"<html><head></head><body><h3 id=\"welcome-to-postman-this-is-your-first-collection\">Welcome to Postman! This is your first collection.</h3>\n<p>Collections are your starting point for building and testing APIs. You can use this one to:</p>\n<p>• Group related requests\n• Test your API in real-world scenarios\n• Document and share your requests</p>\n<p>Update the name and overview whenever you’re ready to make it yours.</p>\n<p><a href=\"https://learning.postman.com/docs/collections/collections-overview/\">Learn more about Postman Collections.</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"55360170","collectionId":"f4242c47-752c-4a80-a718-332e14d0ab63","publishedId":"2sBXwntXXm","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-05-31T02:49:24.000Z"},"item":[{"name":"Post data","event":[{"listen":"test","script":{"id":"9821f265-74c2-4501-839e-282f280f74a8","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"69043d00-3270-4037-858b-33f3b114548d","request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Add your name in the body\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:5000/delete/22?api_key=TopSecretAPIKey","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["delete","22"],"host":["127","0","0","1"],"query":[{"key":"api_key","value":"TopSecretAPIKey"}],"variable":[]}},"response":[],"_postman_id":"69043d00-3270-4037-858b-33f3b114548d"},{"name":"Search cafes by location","event":[{"listen":"test","script":{"id":"f2da7266-1129-4942-9d0f-fb6ea0af4590","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"cd8f339d-b76b-4e5a-91c9-2f7f7d43c01d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/search?loc=Clerkenwell","description":"<p>The /search route will search the cafe database for a\ncafe that matches the location queried.\nUse 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":"Clerkenwell"}],"variable":[]}},"response":[],"_postman_id":"cd8f339d-b76b-4e5a-91c9-2f7f7d43c01d"},{"name":"Get ALL cafes data","event":[{"listen":"test","script":{"id":"2b88a533-733d-478f-be9c-ad82a4e76b8d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"a57b1120-c50b-4d35-8fc3-44847a2db28e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/all","description":"<p>The /all will return all the cafes data available </p>\n","urlObject":{"protocol":"http","port":"5000","path":["all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"a57b1120-c50b-4d35-8fc3-44847a2db28e"},{"name":"Get a random cafe ","event":[{"listen":"test","script":{"id":"2b88a533-733d-478f-be9c-ad82a4e76b8d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"81c7ea1d-235c-46d7-9d47-db739089b041","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/random","description":"<p>The /random return one random cafe information </p>\n","urlObject":{"protocol":"http","port":"5000","path":["random"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"81c7ea1d-235c-46d7-9d47-db739089b041"},{"name":"Edit coffee price ","event":[{"listen":"test","script":{"id":"1338dae0-19b6-4c5c-8f9e-89b9bca6b27d","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"99741746-d16d-415f-aa10-7c1b95b539fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Cafe_do_ze","type":"text","uuid":"aef0600b-1c3a-439c-8375-d45ff0f1dfc0"},{"key":"location","value":"https://www.googlemaps.com","type":"text","uuid":"ce5beccb-d8fb-40f6-be9d-c871224e3f64"},{"key":"map_url","value":"https://goo.gl/maps/D9nXNYK3fa1cxwpK8","type":"text","uuid":"0a5d9012-1b49-4c58-9627-0de59da0c0a7"},{"key":"img_url","value":"https://images.adsttc.com/media/images/5014/ec99/28ba/0d58/2800/0d0f/large_jpg/stringio.jpg?1414576924","type":"text","uuid":"d2f3a651-a3ed-428f-b8fc-12af981ec0bc"},{"key":"has_sockets","value":"1","type":"text","uuid":"5445b347-b8c4-40f9-aee5-6078361c8df7"},{"key":"has_toilet","value":"1","type":"text","uuid":"0de49081-74d9-44d6-b073-6da25b7fc0a3"},{"key":"has_wifi","value":"1","type":"text","uuid":"6b4bc727-8e06-42a5-bf05-3abae16c2395"},{"key":"can_take_calls","value":"1","type":"text","uuid":"140aaa34-d263-48e0-b196-4db5ae5d2eb4"},{"key":"seats","value":"30+","type":"text","uuid":"9d160119-e6c2-4f37-a555-0376552f079f"},{"key":"coffee_price","value":"2.50","type":"text","uuid":"d67e6c52-ab9e-4139-90a9-480e8d31dfdf"}]},"url":"http://127.0.0.1:5000/update_price/24?new_price=$4.27","description":"<p>/update_price/&lt;int: coffe_id&gt; will update the coffee price based on the user new input.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["update_price","24"],"host":["127","0","0","1"],"query":[{"key":"new_price","value":"$4.27"}],"variable":[]}},"response":[],"_postman_id":"99741746-d16d-415f-aa10-7c1b95b539fd"},{"name":"Delete coffee item","event":[{"listen":"test","script":{"id":"9821f265-74c2-4501-839e-282f280f74a8","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"e82ba5e4-e384-43b7-936e-cb879533ec51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Add your name in the body\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:5000/delete/22?api_key=TopSecretAPIKey","description":"<p>With \"/delete/<a>int:coffe_id</a>\" you can delete coffee itams based on the ID - api_key = \"TopSecretAPIKey\"</p>\n","urlObject":{"protocol":"http","port":"5000","path":["delete","22"],"host":["127","0","0","1"],"query":[{"key":"api_key","value":"TopSecretAPIKey"}],"variable":[]}},"response":[],"_postman_id":"e82ba5e4-e384-43b7-936e-cb879533ec51"},{"name":"Add a new cafe location ","event":[{"listen":"test","script":{"id":"9821f265-74c2-4501-839e-282f280f74a8","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"8f8c9ffb-2de2-4df5-8183-509b9658ffa8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Add your name in the body\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:5000/add?name=CafeBR_2&map_url=https://g.page/scigallerylon?share&img_url=https://lh3.googleusercontent.com/p/AF1QipOMzXpKAQNyUvrjTGHqCgWk8spwnzwP8Ml2aDKt=s0&location=Sao Paulo&has_sockets=1&has_toilet=1&has_wifi=1&can_take_calls=0&seats=35+&coffee_price=$3.75","description":"<p>Use /add and all the reqwuired paramethers to add a new cafe to our list.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["","add"],"host":["127","0","0","1"],"query":[{"key":"name","value":"CafeBR_2"},{"key":"map_url","value":"https://g.page/scigallerylon?share"},{"key":"img_url","value":"https://lh3.googleusercontent.com/p/AF1QipOMzXpKAQNyUvrjTGHqCgWk8spwnzwP8Ml2aDKt=s0"},{"key":"location","value":"Sao Paulo"},{"key":"has_sockets","value":"1"},{"key":"has_toilet","value":"1"},{"key":"has_wifi","value":"1"},{"key":"can_take_calls","value":"0"},{"key":"seats","value":"35+"},{"key":"coffee_price","value":"$3.75"}],"variable":[]}},"response":[],"_postman_id":"8f8c9ffb-2de2-4df5-8183-509b9658ffa8"},{"name":"New Request","id":"ec69b1c0-675f-42aa-b03f-351b6be104ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"ec69b1c0-675f-42aa-b03f-351b6be104ff"}]}