{"info":{"_postman_id":"3d309381-daa6-47ac-9079-62206adac5c0","name":"CarRO","description":"<html><head></head><body><p>Car Repair Order management tool</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8357128","collectionId":"3d309381-daa6-47ac-9079-62206adac5c0","publishedId":"SVfTM6RK","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-09-01T19:58:14.000Z"},"item":[{"name":"Add Repair Order","event":[{"listen":"prerequest","script":{"id":"dd650939-859f-4afb-9fe2-9ae4f6c1d54c","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"98cdb1e0-923c-4e40-aaef-16974176159c","exec":["pm.globals.set(\"id\", pm.response.json()['id']);",""],"type":"text/javascript"}}],"id":"be12a5b1-9ad1-4aa4-8451-89022d582c8c","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"vehicle\": {\n\t\t\"make\": \"GMC\",\n\t\t\"model\": \"Denali\",\n\t\t\"license_no\": \"KGF381\"\n\t},\n\t\"customer\": {\n\t\t\"name\": \"John Doe\",\n\t\t\"email_id\": \"johndoe@organization.com\",\n\t\t\"mobile_no\": \"9876543210\"\n\t},\n\t\"complaint\": \"Low Miles per gallon\"\n}"},"url":"{{server}}:{{port}}/repair/","urlObject":{"port":"{{port}}","path":["repair",""],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"30b56e1b-33fa-4ef2-8317-89da3760c958","name":"Add Repair Order","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"vehicle\": {\n\t\t\"make\": \"GMC\",\n\t\t\"model\": \"Denali\",\n\t\t\"license_no\": \"KGF381\"\n\t},\n\t\"customer\": {\n\t\t\"name\": \"John Doe\",\n\t\t\"email_id\": \"johndoe@organization.com\",\n\t\t\"mobile_no\": \"9876543210\"\n\t},\n\t\"complaint\": \"Low Miles per gallon\"\n}"},"url":"http://127.0.0.1:8000/repair/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, POST, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"257","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Sun, 01 Sep 2019 19:54:42 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.5.2","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Accept, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[],"responseTime":null,"body":"{\"id\":12,\"date\":\"2019-09-01T15:54:42.215189\",\"status\":\"ORDERED\",\"complaint\":\"Low Miles per gallon\",\"vehicle\":{\"make\":\"GMC\",\"model\":\"Denali\",\"license_no\":\"KGF381\"},\"customer\":{\"name\":\"John Doe\",\"email_id\":\"johndoe@organization.com\",\"mobile_no\":\"9876543210\"}}"}],"_postman_id":"be12a5b1-9ad1-4aa4-8451-89022d582c8c"},{"name":"Get Repair Orders","id":"1fdaf694-82c4-4969-bb8a-ba333ac1fc4d","request":{"method":"GET","header":[],"url":"{{server}}:{{port}}/repair/","urlObject":{"port":"{{port}}","path":["repair",""],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"b1dca106-12ed-4202-be16-066717ff3157","name":"Get Repair Orders","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://127.0.0.1:8000/repair/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, POST, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"1855","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Sun, 01 Sep 2019 19:55:04 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.5.2","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Accept, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[],"responseTime":null,"body":"[{\"id\":4,\"date\":\"2019-08-30T10:05:36.792000\",\"status\":\"ORDERED\",\"complaint\":\"Low Miles per gallon\",\"vehicle\":{\"make\":\"GMC\",\"model\":\"Denali\",\"license_no\":\"KGF381\"},\"customer\":{\"name\":\"John Doe\",\"email_id\":\"johndoe@organization.com\",\"mobile_no\":\"9876543210\"}},{\"id\":8,\"date\":\"2019-08-31T22:25:21.819000\",\"status\":\"REVIEWING\",\"complaint\":\"The seat belt is getting stuck while driving\",\"vehicle\":{\"make\":\"Toyota\",\"model\":\"Corolla\",\"license_no\":\"JPN100\"},\"customer\":{\"name\":\"Miyamoto Usagi\",\"email_id\":\"miyamotousagi@user.com\",\"mobile_no\":\"9876543210\"}},{\"id\":5,\"date\":\"2019-08-31T22:07:23.623000\",\"status\":\"REPAIRING\",\"complaint\":\"THe brakes are loose\",\"vehicle\":{\"make\":\"Honda\",\"model\":\"Civic\",\"license_no\":\"XTG109\"},\"customer\":{\"name\":\"Alex Tissot\",\"email_id\":\"alex@booker.com\",\"mobile_no\":\"9999888812\"}},{\"id\":10,\"date\":\"2019-09-01T12:16:44.357000\",\"status\":\"DONE\",\"complaint\":\"Engine crackling noise\",\"vehicle\":{\"make\":\"Honda\",\"model\":\"Pilot\",\"license_no\":\"AHLHFA\"},\"customer\":{\"name\":\"Miyamoto Usagi\",\"email_id\":\"miyamotousagi@user.com\",\"mobile_no\":\"9876543210\"}},{\"id\":6,\"date\":\"2019-08-31T22:15:01.860000\",\"status\":\"REPAIRED\",\"complaint\":\"I'm too fast\",\"vehicle\":{\"make\":\"Chevrolet\",\"model\":\"Corvette\",\"license_no\":\"IMFAST\"},\"customer\":{\"name\":\"Alex Tissot\",\"email_id\":\"alex@booker.com\",\"mobile_no\":\"9999888812\"}},{\"id\":11,\"date\":\"2019-09-01T15:39:51.544000\",\"status\":\"ORDERED\",\"complaint\":\"Seats are loose and the lamp is not working\",\"vehicle\":{\"make\":\"Chevrolet\",\"model\":\"Beat\",\"license_no\":\"XBHJ112\"},\"customer\":{\"name\":\"Alex Tissot\",\"email_id\":\"alex@booker.com\",\"mobile_no\":\"9999888812\"}},{\"id\":12,\"date\":\"2019-09-01T15:54:42.215000\",\"status\":\"ORDERED\",\"complaint\":\"Low Miles per gallon\",\"vehicle\":{\"make\":\"GMC\",\"model\":\"Denali\",\"license_no\":\"KGF381\"},\"customer\":{\"name\":\"John Doe\",\"email_id\":\"johndoe@organization.com\",\"mobile_no\":\"9876543210\"}}]"}],"_postman_id":"1fdaf694-82c4-4969-bb8a-ba333ac1fc4d"},{"name":"Get Repair Order by id","id":"d159450c-2be7-4604-bf7c-bfbb9c12f412","request":{"method":"GET","header":[],"url":"{{server}}:{{port}}/repair/{{id}}","urlObject":{"port":"{{port}}","path":["repair","{{id}}"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"c3e8e562-f4cf-4d0c-8b77-1e1d72e899cd","name":"Get Repair Order by id","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://127.0.0.1:8000/repair/12"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"257","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Sun, 01 Sep 2019 19:55:28 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.5.2","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Accept, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[],"responseTime":null,"body":"{\"id\":12,\"date\":\"2019-09-01T15:54:42.215000\",\"status\":\"ORDERED\",\"complaint\":\"Low Miles per gallon\",\"vehicle\":{\"make\":\"GMC\",\"model\":\"Denali\",\"license_no\":\"KGF381\"},\"customer\":{\"name\":\"John Doe\",\"email_id\":\"johndoe@organization.com\",\"mobile_no\":\"9876543210\"}}"}],"_postman_id":"d159450c-2be7-4604-bf7c-bfbb9c12f412"},{"name":"Update Repair Order","id":"d28aae3e-b022-4b51-b407-4472f5112289","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": 12,\n    \"date\": \"2019-09-01T15:54:42.215000\",\n    \"status\": \"REPAIRING\",\n    \"complaint\": \"Low Miles per gallon\",\n    \"vehicle\": {\n        \"make\": \"GMC\",\n        \"model\": \"Denali\",\n        \"license_no\": \"KGF381\"\n    },\n    \"customer\": {\n        \"name\": \"John Doe\",\n        \"email_id\": \"johndoe@organization.com\",\n        \"mobile_no\": \"9876543210\"\n    }\n}"},"url":"{{server}}:{{port}}/repair/{{id}}","urlObject":{"port":"{{port}}","path":["repair","{{id}}"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"be921f25-cd33-4d89-8b28-212e80d92a70","name":"Update Repair Order","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n    \"id\": 12,\n    \"date\": \"2019-09-01T15:54:42.215000\",\n    \"status\": \"REPAIRING\",\n    \"complaint\": \"Low Miles per gallon\",\n    \"vehicle\": {\n        \"make\": \"GMC\",\n        \"model\": \"Denali\",\n        \"license_no\": \"KGF381\"\n    },\n    \"customer\": {\n        \"name\": \"John Doe\",\n        \"email_id\": \"johndoe@organization.com\",\n        \"mobile_no\": \"9876543210\"\n    }\n}"},"url":"http://127.0.0.1:8000/repair/12"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"259","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Sun, 01 Sep 2019 19:56:04 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.5.2","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Accept, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[],"responseTime":null,"body":"{\"id\":12,\"date\":\"2019-09-01T15:54:42.215000\",\"status\":\"REPAIRING\",\"complaint\":\"Low Miles per gallon\",\"vehicle\":{\"make\":\"GMC\",\"model\":\"Denali\",\"license_no\":\"KGF381\"},\"customer\":{\"name\":\"John Doe\",\"email_id\":\"johndoe@organization.com\",\"mobile_no\":\"9876543210\"}}"}],"_postman_id":"d28aae3e-b022-4b51-b407-4472f5112289"},{"name":"Delete Repair Order","id":"9d30a663-9def-4ee1-b0b9-ee13b1e0a44a","request":{"method":"DELETE","header":[],"url":"{{server}}:{{port}}/repair/{{id}}","urlObject":{"port":"{{port}}","path":["repair","{{id}}"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"ed7e8d40-33aa-4d90-9dea-6a36e1adb9f9","name":"Delete Repair Order","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://127.0.0.1:8000/repair/12"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"0","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Date","value":"Sun, 01 Sep 2019 19:56:23 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.5.2","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Accept, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"9d30a663-9def-4ee1-b0b9-ee13b1e0a44a"}]}