{"info":{"_postman_id":"d58ed523-be0b-41b2-9105-c9bcb4640a64","name":"Dealership AI ֎","description":"<html><head></head><body><p>API-driven application featuring an AI-powered chatbot designed to assist or replace sales representatives at car dealerships. It uses AI to provide customers with detailed information about available vehicles, answer their queries, and offer tailored suggestions based on the dealership's inventory.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"10146128","collectionId":"d58ed523-be0b-41b2-9105-c9bcb4640a64","publishedId":"2sAYBUDCCW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-11-23T22:58:50.000Z"},"item":[{"name":"Ping","id":"cfa88222-6863-47bd-83f7-5b3e2196e98e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api","description":"<p>Check service status</p>\n","urlObject":{"host":["http://localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"dad438c4-d786-4899-a323-359faba68f08","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sat, 23 Nov 2024 00:57:57 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"46"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Welcome to the Vehicle Sales API\"\n}"}],"_postman_id":"cfa88222-6863-47bd-83f7-5b3e2196e98e"},{"name":"Get Vehicles","id":"54d41080-1729-41ff-9fd7-0ad1f76f2953","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/vehicles","description":"<p>Get all vehicles</p>\n","urlObject":{"path":["vehicles"],"host":["http://localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"101afd68-90aa-453c-8a58-ee94aa9de091","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/vehicles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sat, 23 Nov 2024 06:40:01 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"1118"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"make\": \"Toyota\",\n        \"model\": \"Corolla\",\n        \"year\": 2021,\n        \"price\": 20000,\n        \"state\": \"new\",\n        \"availability\": \"available\",\n        \"id\": 1\n    },\n    {\n        \"make\": \"Ford\",\n        \"model\": \"Focus\",\n        \"year\": 2019,\n        \"price\": 15000,\n        \"state\": \"used\",\n        \"availability\": \"available\",\n        \"id\": 2\n    },\n    {\n        \"make\": \"Tesla\",\n        \"model\": \"Model 3\",\n        \"year\": 2023,\n        \"price\": 40000,\n        \"state\": \"new\",\n        \"availability\": \"available\",\n        \"id\": 3\n    },\n    {\n        \"make\": \"Honda\",\n        \"model\": \"Civic\",\n        \"year\": 2022,\n        \"price\": 25000,\n        \"state\": \"new\",\n        \"availability\": \"available\",\n        \"id\": 4\n    },\n    {\n        \"make\": \"Chevrolet\",\n        \"model\": \"Malibu\",\n        \"year\": 2020,\n        \"price\": 22000,\n        \"state\": \"used\",\n        \"availability\": \"available\",\n        \"id\": 5\n    },\n    {\n        \"make\": \"BMW\",\n        \"model\": \"3 Series\",\n        \"year\": 2021,\n        \"price\": 35000,\n        \"state\": \"new\",\n        \"availability\": \"available\",\n        \"id\": 6\n    },\n    {\n        \"make\": \"Audi\",\n        \"model\": \"A4\",\n        \"year\": 2022,\n        \"price\": 38000,\n        \"state\": \"new\",\n        \"availability\": \"available\",\n        \"id\": 7\n    },\n    {\n        \"make\": \"Mercedes-Benz\",\n        \"model\": \"C-Class\",\n        \"year\": 2020,\n        \"price\": 42000,\n        \"state\": \"used\",\n        \"availability\": \"available\",\n        \"id\": 8\n    },\n    {\n        \"make\": \"Nissan\",\n        \"model\": \"Altima\",\n        \"year\": 2018,\n        \"price\": 14000,\n        \"state\": \"used\",\n        \"availability\": \"available\",\n        \"id\": 9\n    },\n    {\n        \"make\": \"Hyundai\",\n        \"model\": \"Elantra\",\n        \"year\": 2023,\n        \"price\": 28000,\n        \"state\": \"new\",\n        \"availability\": \"available\",\n        \"id\": 10\n    }\n]"}],"_postman_id":"54d41080-1729-41ff-9fd7-0ad1f76f2953"},{"name":"Get Vehicle by ID","id":"57876ffb-a676-44d5-a578-759dcf624e91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/vehicles/4","description":"<p>Get a specific vehicle by ID</p>\n","urlObject":{"path":["vehicles","4"],"host":["http://localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"764dd407-2623-4e68-9db9-27e22eab90fa","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/vehicles/4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sat, 23 Nov 2024 06:40:20 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"108"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"make\": \"Honda\",\n    \"model\": \"Civic\",\n    \"year\": 2022,\n    \"price\": 25000,\n    \"state\": \"new\",\n    \"availability\": \"available\",\n    \"id\": 4\n}"},{"id":"afe784be-5f23-4962-8239-4258b0d3a912","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/vehicles/8"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sat, 23 Nov 2024 07:06:42 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"40"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Vehicle with ID 8 not found\"\n}"}],"_postman_id":"57876ffb-a676-44d5-a578-759dcf624e91"},{"name":"Create Vehicle","id":"f43187f4-1f85-4b97-b95c-38c517cca236","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"make\": \"Lamborghini\",\n    \"model\": \"Gallardo\",\n    \"year\": 2010,\n    \"price\": 75000,\n    \"state\": \"used\",\n    \"availability\": \"available\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/vehicles","description":"<p>Create a new vehicle</p>\n","urlObject":{"path":["vehicles"],"host":["http://localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"841d1e9d-e120-4f14-960f-d9a33bf01b3c","name":"200 OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"make\": \"Lamborghini\",\n    \"model\": \"Gallardo\",\n    \"year\": 2010,\n    \"price\": 75000,\n    \"state\": \"used\",\n    \"availability\": \"available\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/vehicles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sat, 23 Nov 2024 06:43:20 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"119"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"make\": \"Lamborghini\",\n    \"model\": \"Gallardo\",\n    \"year\": 2010,\n    \"price\": 75000,\n    \"state\": \"used\",\n    \"availability\": \"available\",\n    \"id\": 13\n}"},{"id":"93d1c6d2-82be-4f05-96ca-c474eac0dd21","name":"422 Missing Fields","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"make\": \"Lamborghini\",\n    \"year\": 2010,\n    \"price\": 75000,\n    \"state\": \"used\",\n    \"availability\": \"available\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/vehicles"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sat, 23 Nov 2024 06:43:47 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"176"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": [\n        {\n            \"type\": \"missing\",\n            \"loc\": [\n                \"body\",\n                \"model\"\n            ],\n            \"msg\": \"Field required\",\n            \"input\": {\n                \"make\": \"Lamborghini\",\n                \"year\": 2010,\n                \"price\": 75000,\n                \"state\": \"used\",\n                \"availability\": \"available\"\n            }\n        }\n    ]\n}"}],"_postman_id":"f43187f4-1f85-4b97-b95c-38c517cca236"},{"name":"Update Vehicle","id":"e8083842-67a0-4839-a87f-bc10838ab6c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"price\": 30000\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/vehicles/3","description":"<p>Update an existing vehicle by ID</p>\n","urlObject":{"path":["vehicles","3"],"host":["http://localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"460d76ec-8c2d-4ffb-9209-3d6978c18666","name":"200 OK","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"price\": 25000\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/vehicles/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 24 Nov 2024 00:10:26 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"110"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"make\": \"Tesla\",\n    \"model\": \"Model 3\",\n    \"year\": 2023,\n    \"price\": 25000,\n    \"state\": \"new\",\n    \"availability\": \"available\",\n    \"id\": 3\n}"},{"id":"f1f0367a-615e-4931-a01f-6aced6847dd9","name":"400 Bad Request","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/vehicles/3"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 24 Nov 2024 00:13:52 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"51"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Updating the 'id' field is not allowed\"\n}"}],"_postman_id":"e8083842-67a0-4839-a87f-bc10838ab6c4"},{"name":"Delete Vehicle by ID","id":"f67e80b2-2d31-47b3-81f4-c3d6249de34a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/vehicles/8","description":"<p>Delete a vehicle by ID</p>\n","urlObject":{"path":["vehicles","8"],"host":["http://localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"da3299b7-a208-442f-b746-d0abccd56167","name":"200 OK","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/vehicles/8"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sat, 23 Nov 2024 07:05:31 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"190"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Vehicle with ID 8 deleted successfully\",\n    \"vehicle_details\": {\n        \"id\": 8,\n        \"make\": \"Mercedes-Benz\",\n        \"model\": \"C-Class\",\n        \"year\": 2020,\n        \"price\": 42000,\n        \"state\": \"used\",\n        \"availability\": \"available\"\n    }\n}"},{"id":"700311d7-31e5-4dda-a9bd-f5a9c5b2b806","name":"404 Not Found","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/vehicles/8"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sat, 23 Nov 2024 07:06:24 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"40"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Vehicle with ID 8 not found\"\n}"}],"_postman_id":"f67e80b2-2d31-47b3-81f4-c3d6249de34a"},{"name":"Chat","id":"b3822fed-90b9-45a4-b16d-ddb57b6a1ba8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"message\": \"Do you have any Toyotas?\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/chat","description":"<p>Interact with the AI-powered chatbot</p>\n","urlObject":{"path":["chat"],"host":["http://localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"64a9f503-ceb4-4d2b-bbb9-6f36ca9258db","name":"200 OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"message\": \"Do you have any Toyotas?\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/chat"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sat, 23 Nov 2024 21:41:50 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"252"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"response\": \"Yes, we do have Toyotas in our current inventory. We have a new 2021 Toyota Corolla available at a price of $20,000.0. Would you like more information on this vehicle or would you like to explore other options as well?\"\n}"}],"_postman_id":"b3822fed-90b9-45a4-b16d-ddb57b6a1ba8"}],"event":[{"listen":"prerequest","script":{"id":"63b3d280-4b5d-463f-b1be-b5b54f7b415d","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"6e9d8738-c882-4be0-b972-8a5d6bbe3efa","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"BASE_URL","value":"http://localhost:8000/api","type":"string"}]}