{"info":{"_postman_id":"747b67af-bdf4-4d85-8034-aea3c9147eb8","name":"[Django] - Car park API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"22115905","collectionId":"747b67af-bdf4-4d85-8034-aea3c9147eb8","publishedId":"2s7Z7cmCfz","public":true,"customColor":{"top-bar":"303030","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-09-21T20:46:33.000Z"},"item":[{"name":"Drivers","item":[{"name":"/api/v1/drivers/driver/","id":"733986f0-ae02-44f8-8b1a-7bcd8352a5fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/drivers/driver/","description":"<p>Display a list of drivers.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","drivers","driver",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"8b3865fc-8aea-46d0-ab85-633a40858602","name":"Get driver list","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/drivers/driver/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Sep 2022 20:40:26 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"GET, OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"557"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"first_name\": \"Adam\",\n        \"last_name\": \"Arf\",\n        \"created_at\": \"25/08/2011\",\n        \"updated_at\": \"27/04/2021\"\n    },\n    {\n        \"id\": 3,\n        \"first_name\": \"Mike\",\n        \"last_name\": \"Lourens\",\n        \"created_at\": \"19/11/2021\",\n        \"updated_at\": \"19/11/2021\"\n    },\n    {\n        \"id\": 4,\n        \"first_name\": \"Ross\",\n        \"last_name\": \"Smith\",\n        \"created_at\": \"19/11/2021\",\n        \"updated_at\": \"19/11/2021\"\n    },\n    {\n        \"id\": 5,\n        \"first_name\": \"William\",\n        \"last_name\": \"Brown\",\n        \"created_at\": \"24/11/2021\",\n        \"updated_at\": \"16/12/2021\"\n    },\n    {\n        \"id\": 6,\n        \"first_name\": \"Tom\",\n        \"last_name\": \"Brown\",\n        \"created_at\": \"08/02/2021\",\n        \"updated_at\": \"08/02/2021\"\n    }\n]"}],"_postman_id":"733986f0-ae02-44f8-8b1a-7bcd8352a5fe"},{"name":"/api/v1/drivers/driver/created_at__gte=10-11-2021","id":"14988871-1176-4871-9c62-0a41f80a667c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/drivers/driver/created_at__gte=10-11-2021","description":"<p>Display a list of drivers created after 10-11-2021.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","drivers","driver","created_at__gte=10-11-2021"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"c7d6d034-248b-48d3-9c04-126f57f3b079","name":"Get driver list with a filter (created after 10-11-2021)","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/drivers/driver/created_at__gte=10-11-2021"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 12:48:24 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"338"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"first_name\": \"Mike\",\n        \"last_name\": \"Lourens\",\n        \"created_at\": \"19/11/2021\",\n        \"updated_at\": \"19/11/2021\"\n    },\n    {\n        \"id\": 4,\n        \"first_name\": \"Ross\",\n        \"last_name\": \"Smith\",\n        \"created_at\": \"19/11/2021\",\n        \"updated_at\": \"19/11/2021\"\n    },\n    {\n        \"id\": 5,\n        \"first_name\": \"William\",\n        \"last_name\": \"Brown\",\n        \"created_at\": \"24/11/2021\",\n        \"updated_at\": \"16/12/2021\"\n    }\n]"}],"_postman_id":"14988871-1176-4871-9c62-0a41f80a667c"},{"name":"/api/v1/drivers/driver/created_at__lte=16-11-2021","id":"ecf8ef99-ec60-43d7-87f5-e14e0869d568","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/drivers/driver/created_at__lte=16-11-2021","description":"<p>Display a list of drivers created before 16-11-2021.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","drivers","driver","created_at__lte=16-11-2021"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"b75697f9-7a73-4b31-8050-dd17efd6c2e9","name":"Get driver list with a filter (created before 16-11-2021)","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/drivers/driver/created_at__lte=16-11-2021"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 12:48:55 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"329"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"first_name\": \"Adam\",\n        \"last_name\": \"Arf\",\n        \"created_at\": \"25/08/2011\",\n        \"updated_at\": \"27/04/2021\"\n    },\n    {\n        \"id\": 7,\n        \"first_name\": \"Rick\",\n        \"last_name\": \"Test\",\n        \"created_at\": \"15/01/2015\",\n        \"updated_at\": \"07/07/2022\"\n    },\n    {\n        \"id\": 8,\n        \"first_name\": \"Rick\",\n        \"last_name\": \"Test\",\n        \"created_at\": \"15/01/2015\",\n        \"updated_at\": \"07/07/2022\"\n    }\n]"}],"_postman_id":"ecf8ef99-ec60-43d7-87f5-e14e0869d568"},{"name":"/api/v1/drivers/driver/<int:id>/","id":"24832a04-c72a-4c79-8c4a-81bdb45cc4d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/drivers/driver/2/","description":"<p>Get driver detailed.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","drivers","driver","2",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"7ae9335c-7467-417d-a00b-8bd457742f72","name":"Get driver","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/drivers/driver/2/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Sep 2022 21:32:17 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"GET, OPTIONS, DELETE"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"107"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"first_name\": \"Adam\",\n    \"last_name\": \"Arf\",\n    \"created_at\": \"25/08/2011\",\n    \"updated_at\": \"27/04/2021\"\n}"},{"id":"65499fd2-0e78-4f72-bbfb-a57946bd5e82","name":"Get driver attempt: [Driver doesn't exist]","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/drivers/driver/1/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Sep 2022 21:33:14 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"GET, OPTIONS, DELETE"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"15"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404\n}"}],"_postman_id":"24832a04-c72a-4c79-8c4a-81bdb45cc4d7"},{"name":"/api/v1/drivers/driver/<int:id>/","id":"9062c8fa-6230-43de-b88e-9f2908840a08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/api/v1/drivers/driver/6/","description":"<p>Delete the driver.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","drivers","driver","6",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"7f79d5a2-dffd-4b27-8639-65c365bfea4d","name":"Successfuly deleted driver","originalRequest":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/api/v1/drivers/driver/6/"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Sep 2022 21:34:42 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"GET, OPTIONS, DELETE"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"111"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": null,\n    \"first_name\": \"Tom\",\n    \"last_name\": \"Brown\",\n    \"created_at\": \"08/02/2021\",\n    \"updated_at\": \"08/02/2021\"\n}"}],"_postman_id":"9062c8fa-6230-43de-b88e-9f2908840a08"},{"name":"/api/v1/drivers/driver/","id":"b37856e0-2d1f-47af-9bc3-8e06da0123f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"first_name\": \"Rick\",\r\n    \"last_name\": \"Test\",\r\n    \"created_at\": \"15/01/2015\",\r\n    \"updated_at\": \"07/07/2022\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/drivers/driver/","description":"<p>Create a new driver.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","drivers","driver",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"cff7049f-a45f-4871-8b0e-6e9473b5bacb","name":"Successful creation","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"first_name\": \"Rick\",\r\n    \"last_name\": \"Test\",\r\n    \"created_at\": \"15/01/2015\",\r\n    \"updated_at\": \"07/07/2022\"\r\n}"},"url":"http://127.0.0.1:8000/api/v1/drivers/driver/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 11:36:56 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"POST, GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"108"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 7,\n    \"first_name\": \"Rick\",\n    \"last_name\": \"Test\",\n    \"created_at\": \"15/01/2015\",\n    \"updated_at\": \"07/07/2022\"\n}"},{"id":"d1908b46-7ed5-46b9-ba79-7734dab5f367","name":"Creation attempt: [empty request body]","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\r\n}"},"url":"http://127.0.0.1:8000/api/v1/drivers/driver/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 11:37:25 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"POST, GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"171"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"first_name\": [\n        \"This field is required.\"\n    ],\n    \"last_name\": [\n        \"This field is required.\"\n    ],\n    \"created_at\": [\n        \"This field is required.\"\n    ],\n    \"updated_at\": [\n        \"This field is required.\"\n    ]\n}"},{"id":"b5e25685-1bbf-4c20-b668-d2874aba76c5","name":"Creation attempt: [missed a field]","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"first_name\": \"Rick\",\r\n    \"last_name\": \"Test\",\r\n    \"created_at\": \"15/01/2015\"\r\n}"},"url":"http://127.0.0.1:8000/api/v1/drivers/driver/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 11:35:03 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"POST, GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"43"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"updated_at\": [\n        \"This field is required.\"\n    ]\n}"}],"_postman_id":"b37856e0-2d1f-47af-9bc3-8e06da0123f8"}],"id":"86609d62-6cd3-43be-9d32-801fcdcba923","_postman_id":"86609d62-6cd3-43be-9d32-801fcdcba923","description":""},{"name":"Vehicles","item":[{"name":"/api/v1/vehicles/vehicle/","id":"9d018417-4747-4e2e-8bfc-d3189c69a561","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/","description":"<p>Display a list of vehicles.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","vehicles","vehicle",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"c694b422-e224-4f71-a5ca-1a0cc2678fcb","name":"Get vehicle list","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 11:43:47 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"POST, GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"652"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"driver_id\": null,\n        \"make\": \"Tesla\",\n        \"model\": \"Model X\",\n        \"plate_number\": \"АА 0234 ВА\",\n        \"created_at\": \"19/11/2021\",\n        \"updated_at\": \"19/11/2021\"\n    },\n    {\n        \"id\": 2,\n        \"driver_id\": 3,\n        \"make\": \"BMW\",\n        \"model\": \"x5\",\n        \"plate_number\": \"ZA 0234 ВА\",\n        \"created_at\": \"19/11/2021\",\n        \"updated_at\": \"19/11/2021\"\n    },\n    {\n        \"id\": 4,\n        \"driver_id\": 5,\n        \"make\": \"BYD\",\n        \"model\": \"Han\",\n        \"plate_number\": \"ВН 2394 СР\",\n        \"created_at\": \"24/11/2021\",\n        \"updated_at\": \"16/12/2021\"\n    },\n    {\n        \"id\": 5,\n        \"driver_id\": null,\n        \"make\": \"Tsla\",\n        \"model\": \"Model Y\",\n        \"plate_number\": \"AZ 7465 АК\",\n        \"created_at\": \"01/01/2021\",\n        \"updated_at\": \"12/12/2021\"\n    }\n]"}],"_postman_id":"9d018417-4747-4e2e-8bfc-d3189c69a561"},{"name":"/api/v1/vehicles/vehicle/<int:id>/","id":"d5a2c0aa-d837-46da-95e0-b1a4cbc222c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/1/","description":"<p>Get vehicle detailed.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","vehicles","vehicle","1",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"a1389602-d573-4e36-92c2-7383d7849676","name":"Get vehicle","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 11:46:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, DELETE, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"171"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"driver_id\": null,\n    \"make\": \"Tesla\",\n    \"model\": \"Model X\",\n    \"plate_number\": \"АА 0234 ВА\",\n    \"created_at\": \"19/11/2021\",\n    \"updated_at\": \"19/11/2021\"\n}"},{"id":"e3aaeacf-4a09-493c-a656-42d0b69e84d2","name":"Get vehicle attempt: [Vehicle doesn't exist]","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/10/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 11:46:56 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, DELETE, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"15"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404\n}"}],"_postman_id":"d5a2c0aa-d837-46da-95e0-b1a4cbc222c6"},{"name":"/api/v1/vehicles/vehicle/with_drivers=yes|no","id":"f8cac4c7-9860-4370-ac0f-c343cd647d1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/with_drivers=yes","description":"<p>Get vehicle list with or without drivers.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","vehicles","vehicle","with_drivers=yes"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"52ec32e8-1282-4734-957b-519bf1f8fb1d","name":"Get vehicle list with drivers","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/with_drivers=yes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 11:59:43 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"317"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"driver_id\": 3,\n        \"make\": \"BMW\",\n        \"model\": \"x5\",\n        \"plate_number\": \"ZA 0234 ВА\",\n        \"created_at\": \"19/11/2021\",\n        \"updated_at\": \"19/11/2021\"\n    },\n    {\n        \"id\": 4,\n        \"driver_id\": 5,\n        \"make\": \"BYD\",\n        \"model\": \"Han\",\n        \"plate_number\": \"ВН 2394 СР\",\n        \"created_at\": \"24/11/2021\",\n        \"updated_at\": \"16/12/2021\"\n    }\n]"},{"id":"7887ca34-69e3-40ac-accc-21559782633c","name":"Get vehicle list without drivers","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/with_drivers=no"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 12:00:05 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"335"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"driver_id\": null,\n        \"make\": \"Tesla\",\n        \"model\": \"Model X\",\n        \"plate_number\": \"АА 0234 ВА\",\n        \"created_at\": \"19/11/2021\",\n        \"updated_at\": \"19/11/2021\"\n    },\n    {\n        \"id\": 5,\n        \"driver_id\": null,\n        \"make\": \"Tsla\",\n        \"model\": \"Model Y\",\n        \"plate_number\": \"AZ 7465 АК\",\n        \"created_at\": \"01/01/2021\",\n        \"updated_at\": \"12/12/2021\"\n    }\n]"}],"_postman_id":"f8cac4c7-9860-4370-ac0f-c343cd647d1a"},{"name":"/api/v1/vehicles/vehicle/with_driver/<vehicle_id>/","id":"d85be08a-5ec6-4cd1-b0e9-b5f55ce86f61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/with_driver/2/","description":"<p>Get info about is a driver in the specific vehicle.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","vehicles","vehicle","with_driver","2",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"67178eba-9726-4de0-8f30-d81096a398c2","name":"Get info about is a driver in the specific vehicle: [true]","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/with_driver/2/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 12:03:21 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"41"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2\",\n    \"is_driver_in_vehicle\": true\n}"},{"id":"555272a7-71cb-4275-a5dc-5ecf2ff5e3e7","name":"Get info about is a driver in the specific vehicle: [false]","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/with_driver/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 12:07:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"42"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1\",\n    \"is_driver_in_vehicle\": false\n}"},{"id":"907000ef-5892-49f7-b0c0-4a962661d140","name":"Get info about is a driver in the specific vehicle: [Vehicle doesn't exist]","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/with_driver/10/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 12:07:55 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"15"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404\n}"}],"_postman_id":"d85be08a-5ec6-4cd1-b0e9-b5f55ce86f61"},{"name":"/api/v1/vehicles/vehicle/","id":"c5b03cd3-d756-4fc9-92a0-7389d394ee28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"driver_id\": null,\r\n    \"make\": \"Tesla\",\r\n    \"model\": \"Model Y\",\r\n    \"plate_number\": \"АО 0325 АА\",\r\n    \"created_at\": \"05/12/2021\",\r\n    \"updated_at\": \"05/07/2022\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/","description":"<p>Create a new vehicle.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","vehicles","vehicle",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"1390bb94-cdd1-4c4e-93bf-d6d533dbb8f6","name":"Successful creation","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"driver_id\": null,\r\n    \"make\": \"Tesla\",\r\n    \"model\": \"Model Y\",\r\n    \"plate_number\": \"АО 0325 АА\",\r\n    \"created_at\": \"05/12/2021\",\r\n    \"updated_at\": \"05/07/2022\"\r\n}"},"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 12:13:32 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"POST, GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"171"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 6,\n    \"driver_id\": null,\n    \"make\": \"Tesla\",\n    \"model\": \"Model Y\",\n    \"plate_number\": \"АО 0325 АА\",\n    \"created_at\": \"05/12/2021\",\n    \"updated_at\": \"05/07/2022\"\n}"},{"id":"95dc4c5b-d615-479e-9951-c785ba2914cf","name":"Creation attempt: [Inappropriate format for the field \"plate_number\"]","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"driver_id\": null,\r\n    \"make\": \"Tesla\",\r\n    \"model\": \"Model Y\",\r\n    \"plate_number\": \"АО 0325 АА\",\r\n    \"created_at\": \"05/12/2021\",\r\n    \"updated_at\": \"05/07/2022\"\r\n}"},"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 12:12:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"POST, GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"98"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"plate_number\": [\n        \"Inappropriate format. Try to use Ukrainian letters, example: \\\"AA 1234 OO\\\".\"\n    ]\n}"},{"id":"81dcb32b-6b52-4e1a-bbe9-ab59f7eae51b","name":"Creation attempt: [empty request body]","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \r\n}"},"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 12:14:32 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"POST, GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"206"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"make\": [\n        \"This field is required.\"\n    ],\n    \"model\": [\n        \"This field is required.\"\n    ],\n    \"plate_number\": [\n        \"This field is required.\"\n    ],\n    \"created_at\": [\n        \"This field is required.\"\n    ],\n    \"updated_at\": [\n        \"This field is required.\"\n    ]\n}"}],"_postman_id":"c5b03cd3-d756-4fc9-92a0-7389d394ee28"},{"name":"/api/v1/vehicles/set_driver/<vehicle_id>/","id":"036ca264-8d05-488e-92d0-a2dccec7cf0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/set_driver/6/","description":"<p>PUT the random existing driver into the car with the specified id</p>\n<p>or</p>\n<p>PULL the driver from the car with the specified id if the driver is already in it.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","vehicles","set_driver","6",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"dec29e35-f780-4fd6-9bf5-17983eb2caff","name":"The random existing driver was put into the car with id=6","originalRequest":{"method":"POST","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/set_driver/6/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 12:16:12 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"168"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 6,\n    \"driver_id\": 4,\n    \"make\": \"Tesla\",\n    \"model\": \"Model Y\",\n    \"plate_number\": \"АО 0325 АА\",\n    \"created_at\": \"05/12/2021\",\n    \"updated_at\": \"05/07/2022\"\n}"},{"id":"a9750832-718f-4fbf-9657-069499416aff","name":"The driver was pulled from the car with id=6","originalRequest":{"method":"POST","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/set_driver/6/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 12:21:22 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"171"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 6,\n    \"driver_id\": null,\n    \"make\": \"Tesla\",\n    \"model\": \"Model Y\",\n    \"plate_number\": \"АО 0325 АА\",\n    \"created_at\": \"05/12/2021\",\n    \"updated_at\": \"05/07/2022\"\n}"}],"_postman_id":"036ca264-8d05-488e-92d0-a2dccec7cf0f"},{"name":"/api/v1/vehicles/vehicle/<int:id>/","id":"ddaf7ca8-cf28-4096-92ea-ee06f2807071","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/6/","description":"<p>Delete the vehicle.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","vehicles","vehicle","6",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"53c66e10-ead4-444e-bf64-9c7a4ae5272e","name":"Successfuly deleted vehicle","originalRequest":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/api/v1/vehicles/vehicle/6/"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Sep 2022 12:24:05 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.5"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, DELETE, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"174"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": null,\n    \"driver_id\": null,\n    \"make\": \"Tesla\",\n    \"model\": \"Model Y\",\n    \"plate_number\": \"АО 0325 АА\",\n    \"created_at\": \"05/12/2021\",\n    \"updated_at\": \"05/07/2022\"\n}"}],"_postman_id":"ddaf7ca8-cf28-4096-92ea-ee06f2807071"}],"id":"131ee51b-09f4-4746-9834-7507e2dfc25d","_postman_id":"131ee51b-09f4-4746-9834-7507e2dfc25d","description":""}]}