{"info":{"_postman_id":"782c6e95-53de-4760-b2c0-32a120757ce7","name":"Cafe & Wifi (revision)","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"27433760","collectionId":"782c6e95-53de-4760-b2c0-32a120757ce7","publishedId":"2s93kz7Rkz","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-05-18T23:44:04.000Z"},"item":[{"name":"Get All Cafes","id":"7e0dea4a-7925-45ef-a1c7-69118c58a2b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://cafe-and-wifi-c91439d2db33.herokuapp.com","description":"<p>The / route:</p>\n<p>Returns the data of all cafes, from the cafe database.</p>\n","urlObject":{"protocol":"https","host":["cafe-and-wifi-c91439d2db33","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e0dea4a-7925-45ef-a1c7-69118c58a2b9"},{"name":"Get Random Cafe","id":"48809835-3f48-40a5-a78d-df7c01d3f5fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://cafe-and-wifi-c91439d2db33.herokuapp.com/random","description":"<p>the /random route:</p>\n<p>Returns a random cafe from the cafe database.</p>\n","urlObject":{"protocol":"https","path":["random"],"host":["cafe-and-wifi-c91439d2db33","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"48809835-3f48-40a5-a78d-df7c01d3f5fa"},{"name":"Search Cafes By Location","id":"779a02b6-e150-4a70-b06d-9030bf529bfd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://cafe-and-wifi-c91439d2db33.herokuapp.com/search","description":"<p>The /search route:</p>\n<p>Will search in the cafe database for each cafe that matches the location queried.</p>\n<p>Use the form to pass a location name.</p>\n","urlObject":{"protocol":"https","path":["search"],"host":["cafe-and-wifi-c91439d2db33","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"779a02b6-e150-4a70-b06d-9030bf529bfd"},{"name":"Register into the app","id":"668603d6-41c9-428a-8695-57092fe3e60c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"username","value":"dbtmedusa","type":"text"},{"key":"password","value":"SiisiChacal","type":"text"}],"url":"https://cafe-and-wifi-c91439d2db33.herokuapp.com/register","description":"<p>The /register route:</p>\n<p>Will Register a new user into the users database.</p>\n<p>You will need to provide a name and a password.</p>\n","urlObject":{"protocol":"https","path":["register"],"host":["cafe-and-wifi-c91439d2db33","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"668603d6-41c9-428a-8695-57092fe3e60c"},{"name":"Login into the App","id":"3a8cd43b-24cd-4bae-9aa8-4641cbcf07f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"username","value":"some name","type":"text"},{"key":"password","value":"some password","type":"text"}],"url":"https://cafe-and-wifi-c91439d2db33.herokuapp.com/login","description":"<p>The /login route:</p>\n<p>Will login a registered User into the App.</p>\n<p>You will need to provide the a valid username &amp; password.</p>\n","urlObject":{"protocol":"https","path":["login"],"host":["cafe-and-wifi-c91439d2db33","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a8cd43b-24cd-4bae-9aa8-4641cbcf07f4"},{"name":"Add A New Cafe To The Database","id":"8e4e733f-0ccb-4dd1-b242-3d7ed3707393","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"okk... .","type":"text"},{"key":"map_url","value":"https://rastas-dreads.3marches.com","type":"text"},{"key":"img_url","value":"https://rastas-dreadlocks.3marches.com","type":"text"},{"key":"loc","value":"Paris","type":"text"},{"key":"sockets","value":"true","type":"text"},{"key":"toilet","value":"true","type":"text"},{"key":"wifi","value":"true","type":"text"},{"key":"calls","value":"true","type":"text"},{"key":"seats","value":"55+","type":"text"},{"key":"coffee_price","value":"£23.61","type":"text"}]},"url":"https://cafe-and-wifi-c91439d2db33.herokuapp.com/add","description":"<p>The /add route:</p>\n<p>Will adds a new cafe entry, into the cafe database.</p>\n<p>Requires authentication with api-key parameter.</p>\n","urlObject":{"protocol":"https","path":["add"],"host":["cafe-and-wifi-c91439d2db33","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e4e733f-0ccb-4dd1-b242-3d7ed3707393"},{"name":"Update Cofee Price For Cafe","id":"ba92f886-b476-4809-88c1-43a78a7e70b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"new_price","value":"£1.99","type":"text"}],"url":"https://cafe-and-wifi-c91439d2db33.herokuapp.com/choose-cafe","description":"<p>The /update-price// route:</p>\n<p>will update the price of a black coffee at a particular Cafe, into the cafe database by its id.</p>\n<p>You will need to provide the new_price value, for this operation to be allowed.</p>\n","urlObject":{"protocol":"https","path":["choose-cafe"],"host":["cafe-and-wifi-c91439d2db33","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba92f886-b476-4809-88c1-43a78a7e70b6"},{"name":"Delete a Cafe By Id","id":"f131f266-ca67-4516-87a0-cff9a3c3b501","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"cafe_id","value":"cafe id number","type":"text"}],"url":"https://cafe-and-wifi-c91439d2db33.herokuapp.com/delete-cafe","description":"<p>The /delete-cafe route:</p>\n<p>Will Deletes a cafe from the database.</p>\n<p>You will need to provide the id of the cafes to delete.</p>\n","urlObject":{"protocol":"https","path":["delete-cafe"],"host":["cafe-and-wifi-c91439d2db33","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f131f266-ca67-4516-87a0-cff9a3c3b501"},{"name":"Delete a User By Id","id":"0b0b6e09-439b-4e47-9e40-cc35ae2eeb77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"user_id","value":"user id nbr","type":"text"}],"url":"https://cafe-and-wifi-c91439d2db33.herokuapp.com/delete-user","description":"<p>The /delete-user route:</p>\n<p>Will Delete a user from the database.</p>\n<p>You will need to provide the id of the cafe to delete.</p>\n","urlObject":{"protocol":"https","path":["delete-user"],"host":["cafe-and-wifi-c91439d2db33","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b0b6e09-439b-4e47-9e40-cc35ae2eeb77"}]}