{"info":{"_postman_id":"91e1c92d-8638-4bb3-9e90-424b8cf77504","name":"Car Dealership","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"15740580","collectionId":"91e1c92d-8638-4bb3-9e90-424b8cf77504","publishedId":"TzRUCT4v","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-05-13T01:02:23.000Z"},"item":[{"name":"Get All Cars","id":"7247319b-0235-48fb-b800-47f7fafae6f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This route returns a json with the data from all cars in the database.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"3f4e7a99-7dd7-427a-8918-30e92685dc43","name":"Get All Cars","originalRequest":{"method":"GET","header":[],"url":"localhost:5000/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2260"},{"key":"Server","value":"Werkzeug/2.0.0 Python/3.9.2"},{"key":"Date","value":"Wed, 12 May 2021 21:57:32 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"cars\": [\n        {\n            \"autopilot\": false,\n            \"color\": \"gold\",\n            \"id\": 0,\n            \"make\": \"Audi\",\n            \"model\": \"R8\",\n            \"price\": 169900,\n            \"year\": 2020\n        },\n        {\n            \"autopilot\": true,\n            \"color\": \"red\",\n            \"id\": 1,\n            \"make\": \"Tesla\",\n            \"model\": \"S\",\n            \"price\": 69420,\n            \"year\": 2020\n        },\n        {\n            \"autopilot\": true,\n            \"color\": \"black\",\n            \"id\": 2,\n            \"make\": \"Tesla\",\n            \"model\": \"X\",\n            \"price\": 79990,\n            \"year\": 2021\n        },\n        {\n            \"autopilot\": true,\n            \"color\": \"blue\",\n            \"id\": 3,\n            \"make\": \"Tesla\",\n            \"model\": \"Y\",\n            \"price\": 39990,\n            \"year\": 2021\n        },\n        {\n            \"autopilot\": false,\n            \"color\": \"white\",\n            \"id\": 4,\n            \"make\": \"BMW\",\n            \"model\": \"3-Series\",\n            \"price\": 41250,\n            \"year\": 2021\n        },\n        {\n            \"autopilot\": false,\n            \"color\": \"black\",\n            \"id\": 5,\n            \"make\": \"Mercedes-Benz\",\n            \"model\": \"S-Class\",\n            \"price\": 130150,\n            \"year\": 2021\n        },\n        {\n            \"autopilot\": false,\n            \"color\": \"blue\",\n            \"id\": 6,\n            \"make\": \"Mercedes-Benz\",\n            \"model\": \"E-Class\",\n            \"price\": 54250,\n            \"year\": 2021\n        },\n        {\n            \"autopilot\": false,\n            \"color\": \"black\",\n            \"id\": 7,\n            \"make\": \"Genesis\",\n            \"model\": \"G80\",\n            \"price\": 47700,\n            \"year\": 2021\n        },\n        {\n            \"autopilot\": false,\n            \"color\": \"red\",\n            \"id\": 8,\n            \"make\": \"Audi\",\n            \"model\": \"A8\",\n            \"price\": 86500,\n            \"year\": 2019\n        },\n        {\n            \"autopilot\": false,\n            \"color\": \"white\",\n            \"id\": 9,\n            \"make\": \"Audi\",\n            \"model\": \"A4\",\n            \"price\": 65900,\n            \"year\": 2019\n        },\n        {\n            \"autopilot\": false,\n            \"color\": \"white\",\n            \"id\": 10,\n            \"make\": \"Audi\",\n            \"model\": \"A6\",\n            \"price\": 72900,\n            \"year\": 2020\n        },\n        {\n            \"autopilot\": false,\n            \"color\": \"gray\",\n            \"id\": 11,\n            \"make\": \"Lexus\",\n            \"model\": \"IS\",\n            \"price\": 50789,\n            \"year\": 2018\n        },\n        {\n            \"autopilot\": true,\n            \"color\": \"yellow\",\n            \"id\": 12,\n            \"make\": \"Lamborghini\",\n            \"model\": \"Huracan\",\n            \"price\": 208571,\n            \"year\": 2021\n        }\n    ]\n}"}],"_postman_id":"7247319b-0235-48fb-b800-47f7fafae6f2"},{"name":"Search Cars By Make","id":"7bcfef08-11f7-481b-ab01-f95b07c7643c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>The /search_make route will search the cars database for a car that matches the make queried.</p>\n<p>Use the car_make parameter to pass a car make.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"d1a7c0ed-4c05-40b6-a8ef-a5ae692ef919","name":"Search Cars By Make","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:5000/search_make?car_make=Tesla","host":["localhost"],"port":"5000","path":["search_make"],"query":[{"key":"car_make","value":"Tesla","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"449"},{"key":"Server","value":"Werkzeug/2.0.0 Python/3.9.2"},{"key":"Date","value":"Wed, 12 May 2021 22:01:01 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"autopilot\": true,\n        \"color\": \"red\",\n        \"id\": 1,\n        \"make\": \"Tesla\",\n        \"model\": \"S\",\n        \"price\": 69420,\n        \"year\": 2020\n    },\n    {\n        \"autopilot\": true,\n        \"color\": \"black\",\n        \"id\": 2,\n        \"make\": \"Tesla\",\n        \"model\": \"X\",\n        \"price\": 79990,\n        \"year\": 2021\n    },\n    {\n        \"autopilot\": true,\n        \"color\": \"blue\",\n        \"id\": 3,\n        \"make\": \"Tesla\",\n        \"model\": \"Y\",\n        \"price\": 39990,\n        \"year\": 2021\n    }\n]"}],"_postman_id":"7bcfef08-11f7-481b-ab01-f95b07c7643c"},{"name":"Search Cars By Color","id":"4beb7521-3db1-4e61-8804-7bf765c9f821","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:5000/search_color?car_color=yellow","description":"<p>The /search_color route will search the cars database for a car that matches the color queried.</p>\n<p>Use the car_color parameter to pass a car color.</p>\n","urlObject":{"port":"5000","path":["search_color"],"host":["localhost"],"query":[{"key":"car_color","value":"yellow"}],"variable":[]}},"response":[{"id":"e1609345-942e-4bed-8e64-5b776d5188f2","name":"Search Cars By Color","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:5000/search_color?car_color=yellow","host":["localhost"],"port":"5000","path":["search_color"],"query":[{"key":"car_color","value":"yellow","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"201"},{"key":"Server","value":"Werkzeug/2.0.0 Python/3.9.2"},{"key":"Date","value":"Wed, 12 May 2021 22:04:35 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"cars\": [\n        {\n            \"autopilot\": true,\n            \"color\": \"yellow\",\n            \"id\": 12,\n            \"make\": \"Lamborghini\",\n            \"model\": \"Huracan\",\n            \"price\": 208571,\n            \"year\": 2021\n        }\n    ]\n}"}],"_postman_id":"4beb7521-3db1-4e61-8804-7bf765c9f821"},{"name":"Add New Car","id":"8651ab24-3166-41a9-96a1-82e16f1c5c41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"make","value":"Lamborghini","type":"text"},{"key":"model","value":"Huracan","type":"text"},{"key":"year","value":"2021","type":"text"},{"key":"color","value":"yellow","type":"text"},{"key":"autopilot","value":"False","type":"text"},{"key":"price","value":"208571","type":"text"}]},"url":"localhost:5000/add_car","description":"<p>Adds a new car entry to the database. Requires authentication with api-key parameter.</p>\n","urlObject":{"port":"5000","path":["add_car"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ddcb751f-4c40-4bee-b09c-358263eea425","name":"Add New Car","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"make","value":"Lamborghini","type":"text"},{"key":"model","value":"Huracan","type":"text"},{"key":"year","value":"2021","type":"text"},{"key":"color","value":"white","type":"text"},{"key":"autopilot","value":"False","type":"text"},{"key":"price","value":"208571","type":"text"}]},"url":{"raw":"localhost:5000/add_car?api_key=SECRET_API_KEY","host":["localhost"],"port":"5000","path":["add_car"],"query":[{"key":"api_key","value":"SECRET_API_KEY","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"87"},{"key":"Server","value":"Werkzeug/2.0.0 Python/3.9.2"},{"key":"Date","value":"Wed, 12 May 2021 22:12:53 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": {\n        \"successful\": \"New car successfully added to the database.\"\n    }\n}"}],"_postman_id":"8651ab24-3166-41a9-96a1-82e16f1c5c41"},{"name":"Update Car Price","id":"29a05aaa-3d28-4525-9cd9-5048b407490e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"localhost:5000/update_price/0?new_price=170000","description":"<p>Update the price of a particular car based on the car id. </p>\n<p>Use the new_price parameter to add the new car price.</p>\n","urlObject":{"port":"5000","path":["update_price","0"],"host":["localhost"],"query":[{"key":"new_price","value":"170000"}],"variable":[]}},"response":[{"id":"d0973aa3-8d7e-46d1-ae3c-dd5690b4264a","name":"Update Car Price","originalRequest":{"method":"PATCH","header":[],"url":{"raw":"localhost:5000/update_price/0?new_price=170000","host":["localhost"],"port":"5000","path":["update_price","0"],"query":[{"key":"new_price","value":"170000","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"96"},{"key":"Server","value":"Werkzeug/2.0.0 Python/3.9.2"},{"key":"Date","value":"Wed, 12 May 2021 22:25:04 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": {\n        \"success\": \"Car price successfully update. New car price is $170000\"\n    }\n}"}],"_postman_id":"29a05aaa-3d28-4525-9cd9-5048b407490e"},{"name":"Delete a Car By Id","id":"a5d89155-dc09-47e0-b891-15a9339fc5f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:5000/delete_car/15?api_key=SECRET_API_KEY","urlObject":{"port":"5000","path":["delete_car","15"],"host":["localhost"],"query":[{"key":"api_key","value":"SECRET_API_KEY"}],"variable":[]}},"response":[{"id":"831c5dea-2450-4e52-ba6c-e00cb6a31724","name":"Delete a Car By Id","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"localhost:5000/delete_car/14?api_key=SECRET_API_KEY","host":["localhost"],"port":"5000","path":["delete_car","14"],"query":[{"key":"api_key","value":"SECRET_API_KEY"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"87"},{"key":"Server","value":"Werkzeug/2.0.0 Python/3.9.2"},{"key":"Date","value":"Thu, 13 May 2021 01:01:25 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": {\n        \"successful\": \"Car successfully removed from the database.\"\n    }\n}"}],"_postman_id":"a5d89155-dc09-47e0-b891-15a9339fc5f4"}]}