{"info":{"_postman_id":"d09d96ed-f33e-478f-a53d-daa00c8a55ab","name":"Techinnover","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"14459384","collectionId":"d09d96ed-f33e-478f-a53d-daa00c8a55ab","publishedId":"2s9XxsVbY5","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-07-28T08:05:20.000Z"},"item":[{"name":"Register Drone","id":"59a04a99-0161-4f22-b3d9-14e4474f5b66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"model\": \"HEAVYWEIGHT\",\n    \"weightLimit\": \"500\",\n    \"batteryCapacity\": 100\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/drones/register","urlObject":{"protocol":"http","port":"5500","path":["api","drones","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7bc24ef7-b74e-42a7-8048-872c3ec6abdf","name":"New Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"model\": \"LIGHTWEIGHT\",\n    \"weightLimit\": \"150\",\n    \"batteryCapacity\": 100\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/drones/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"349"},{"key":"ETag","value":"W/\"15d-T/fD54PS3Wcd+KMYc258K+rdhCw\""},{"key":"Date","value":"Fri, 28 Jul 2023 05:48:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Drone registered successfully\",\n    \"data\": {\n        \"id\": \"c9e9964b-762d-4281-810c-06693ccc19fc\",\n        \"serialNo\": \"REfjd5YFbk4OEuBX\",\n        \"model\": \"LIGHTWEIGHT\",\n        \"weightLimit\": \"150\",\n        \"remainingWeight\": \"150\",\n        \"batteryCapacity\": 100,\n        \"remainingBattery\": 100,\n        \"state\": \"IDLE\",\n        \"createdAt\": \"2023-07-28T05:48:32.026Z\",\n        \"updatedAt\": \"2023-07-28T05:48:32.026Z\"\n    }\n}"},{"id":"62665551-eed5-489c-99f2-039b056b1d7d","name":"New Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"model\": \"HEAVYWEIGHT\",\n    \"weightLimit\": \"500\",\n    \"batteryCapacity\": 100\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/drones/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"349"},{"key":"ETag","value":"W/\"15d-xbBb+uy8i86mBpVfX48Z3CaR9Cg\""},{"key":"Date","value":"Fri, 28 Jul 2023 05:57:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Drone registered successfully\",\n    \"data\": {\n        \"id\": \"600f9243-9fde-4e5c-96ac-aa02fdbff622\",\n        \"serialNo\": \"xeVTVlAtttPTYABz\",\n        \"model\": \"HEAVYWEIGHT\",\n        \"weightLimit\": \"500\",\n        \"remainingWeight\": \"500\",\n        \"batteryCapacity\": 100,\n        \"remainingBattery\": 100,\n        \"state\": \"IDLE\",\n        \"createdAt\": \"2023-07-28T05:57:35.005Z\",\n        \"updatedAt\": \"2023-07-28T05:57:35.005Z\"\n    }\n}"}],"_postman_id":"59a04a99-0161-4f22-b3d9-14e4474f5b66"},{"name":"Load Drone with medication","id":"131dd5d9-5cd1-4ccb-a29c-c4c33f073a10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"droneId\": \"600f9243-9fde-4e5c-96ac-aa02fdbff622\",\n    \"weight\": 100,\n    \"name\": \"SODIQ_MEDICATION-1\",\n    \"image\": \"https://www.image.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/drones/load","urlObject":{"protocol":"http","port":"5500","path":["api","drones","load"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c39fa002-761b-4426-b801-b673753332e5","name":"New Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"droneId\": \"600f9243-9fde-4e5c-96ac-aa02fdbff622\",\n    \"weight\": 100,\n    \"name\": \"SODIQ_MEDICATION-1\",\n    \"image\": \"https://www.image.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/drones/load"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"629"},{"key":"ETag","value":"W/\"275-eepf+KKTsH/iFKeThu+YNC0R10s\""},{"key":"Date","value":"Fri, 28 Jul 2023 05:58:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Drone loaded successfully\",\n    \"data\": {\n        \"id\": \"600f9243-9fde-4e5c-96ac-aa02fdbff622\",\n        \"serialNo\": \"xeVTVlAtttPTYABz\",\n        \"model\": \"HEAVYWEIGHT\",\n        \"weightLimit\": \"500\",\n        \"remainingWeight\": \"400\",\n        \"batteryCapacity\": 100,\n        \"remainingBattery\": 75,\n        \"state\": \"LOADING\",\n        \"createdAt\": \"2023-07-28T05:57:35.005Z\",\n        \"updatedAt\": \"2023-07-28T05:58:49.908Z\",\n        \"medications\": [\n            {\n                \"id\": \"bcba2a32-6f22-4243-bf99-d733acee8bf5\",\n                \"droneId\": \"600f9243-9fde-4e5c-96ac-aa02fdbff622\",\n                \"name\": \"SODIQ_MEDICATION-1\",\n                \"weight\": \"100\",\n                \"code\": \"Y_HMTQ8E\",\n                \"image\": \"https://www.image.com\",\n                \"createdAt\": \"2023-07-28T05:58:49.899Z\",\n                \"updatedAt\": \"2023-07-28T05:58:49.899Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"131dd5d9-5cd1-4ccb-a29c-c4c33f073a10"},{"name":"Get drone loaded medications","id":"eca2d0b7-b6c1-4d04-8871-72bd0247ebb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5500/api/drones/c9e9964b-762d-4281-810c-06693ccc19fc/loaded-medications","urlObject":{"protocol":"http","port":"5500","path":["api","drones","c9e9964b-762d-4281-810c-06693ccc19fc","loaded-medications"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2272afff-d90d-4615-8917-44a51989efdd","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/drones/c9e9964b-762d-4281-810c-06693ccc19fc/loaded-medications"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-mgtJrAkt46iJ/Zo+sNfcBeKIoeo\""},{"key":"Date","value":"Fri, 28 Jul 2023 06:09:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Drone is not loaded with any medication\"\n}"},{"id":"1b206284-00a1-4c1b-8d21-dc4dc65963d3","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/drones/c9e9964b-762d-4281-810c-06693ccc19fc/loaded-medications"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"605"},{"key":"ETag","value":"W/\"25d-ar2KVOCUTZZ+f5NT3YFWcvcgoec\""},{"key":"Date","value":"Fri, 28 Jul 2023 07:14:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Loaded drones fetched successfully\",\n    \"data\": [\n        {\n            \"id\": \"cb16ff70-cffb-4270-a886-d9bfc9505558\",\n            \"droneId\": \"c9e9964b-762d-4281-810c-06693ccc19fc\",\n            \"name\": \"SODIQ_MEDICATION\",\n            \"weight\": \"100\",\n            \"code\": \"SLHWS_7P\",\n            \"image\": \"https://www.image.com\",\n            \"createdAt\": \"2023-07-28T05:56:10.140Z\",\n            \"updatedAt\": \"2023-07-28T05:56:10.140Z\"\n        },\n        {\n            \"id\": \"82028c36-8b3c-44f3-9b74-9839e09c74a2\",\n            \"droneId\": \"c9e9964b-762d-4281-810c-06693ccc19fc\",\n            \"name\": \"SODIQ_MEDICATION-2\",\n            \"weight\": \"50\",\n            \"code\": \"YOA2643_\",\n            \"image\": \"https://www.image.com\",\n            \"createdAt\": \"2023-07-28T06:47:10.719Z\",\n            \"updatedAt\": \"2023-07-28T06:47:10.719Z\"\n        }\n    ]\n}"}],"_postman_id":"eca2d0b7-b6c1-4d04-8871-72bd0247ebb4"},{"name":"Update Drone state","id":"590ba79d-0293-4ab1-906f-58573020b548","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"state\": \"LOADED\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/drones/c9e9964b-762d-4281-810c-06693ccc19fc/updateState","urlObject":{"protocol":"http","port":"5500","path":["api","drones","c9e9964b-762d-4281-810c-06693ccc19fc","updateState"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bbf5f3cc-1cfe-497f-933c-547ec82345bc","name":"New Request","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"state\": \"LOADED\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/drones/c9e9964b-762d-4281-810c-06693ccc19fc/updateState"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"352"},{"key":"ETag","value":"W/\"160-DMWjDaY9ZnPUId93LMROopdjKCg\""},{"key":"Date","value":"Fri, 28 Jul 2023 07:13:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Drones state updated successfully\",\n    \"data\": {\n        \"id\": \"c9e9964b-762d-4281-810c-06693ccc19fc\",\n        \"serialNo\": \"REfjd5YFbk4OEuBX\",\n        \"model\": \"LIGHTWEIGHT\",\n        \"weightLimit\": \"150\",\n        \"remainingWeight\": \"0\",\n        \"batteryCapacity\": 100,\n        \"remainingBattery\": 50,\n        \"state\": \"LOADED\",\n        \"createdAt\": \"2023-07-28T05:48:32.026Z\",\n        \"updatedAt\": \"2023-07-28T07:13:11.876Z\"\n    }\n}"}],"_postman_id":"590ba79d-0293-4ab1-906f-58573020b548"},{"name":"Available Drones","id":"8217651d-ebab-4951-9ea4-2a6d7ada4d2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5500/api/drones/available","urlObject":{"protocol":"http","port":"5500","path":["api","drones","available"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"194dd52f-eed6-4002-843e-66f2f3fea86b","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/drones/available-drones"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"373"},{"key":"ETag","value":"W/\"175-rZ4CgnHtfvik5sDdyChHYvdDKdY\""},{"key":"Date","value":"Fri, 28 Jul 2023 07:14:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Available drones fetched successfully\",\n    \"data\": {\n        \"data\": [\n            {\n                \"id\": \"6d17411c-1fa6-4ff8-a443-7b2f76587748\",\n                \"serialNo\": \"1xsf6PVazluci3dF\",\n                \"model\": \"MIDDLEWEIGHT\",\n                \"weightLimit\": \"445.25\",\n                \"remainingWeight\": \"445.25\",\n                \"batteryCapacity\": 92,\n                \"remainingBattery\": 92,\n                \"state\": \"IDLE\",\n                \"createdAt\": \"2023-07-27T18:59:03.486Z\",\n                \"updatedAt\": \"2023-07-27T18:59:03.486Z\"\n            }\n        ]\n    }\n}"},{"id":"d69d51b7-e640-4d36-b1fa-23563fb02678","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/drones/available-drones"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"655"},{"key":"ETag","value":"W/\"28f-gCNu4uZZjtGWbnbmplWUmhtothk\""},{"key":"Date","value":"Fri, 28 Jul 2023 07:21:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Available drones fetched successfully\",\n    \"data\": {\n        \"data\": [\n            {\n                \"id\": \"6d17411c-1fa6-4ff8-a443-7b2f76587748\",\n                \"serialNo\": \"1xsf6PVazluci3dF\",\n                \"model\": \"MIDDLEWEIGHT\",\n                \"weightLimit\": \"445.25\",\n                \"remainingWeight\": \"445.25\",\n                \"batteryCapacity\": 92,\n                \"remainingBattery\": 92,\n                \"state\": \"IDLE\",\n                \"createdAt\": \"2023-07-27T18:59:03.486Z\",\n                \"updatedAt\": \"2023-07-27T18:59:03.486Z\"\n            },\n            {\n                \"id\": \"600f9243-9fde-4e5c-96ac-aa02fdbff622\",\n                \"serialNo\": \"xeVTVlAtttPTYABz\",\n                \"model\": \"HEAVYWEIGHT\",\n                \"weightLimit\": \"500\",\n                \"remainingWeight\": \"400\",\n                \"batteryCapacity\": 100,\n                \"remainingBattery\": 75,\n                \"state\": \"LOADING\",\n                \"createdAt\": \"2023-07-28T05:57:35.005Z\",\n                \"updatedAt\": \"2023-07-28T05:58:49.908Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"8217651d-ebab-4951-9ea4-2a6d7ada4d2e"},{"name":"Drone Battery level","id":"8cbfa825-a1a8-4c11-92fb-3805c46d8305","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5500/api/drones/600f9243-9fde-4e5c-96ac-aa02fdbff622/battery-level","urlObject":{"protocol":"http","port":"5500","path":["api","drones","600f9243-9fde-4e5c-96ac-aa02fdbff622","battery-level"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3ace45cb-26c4-4aa7-adc7-792e8c3c21d1","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/drones/600f9243-9fde-4e5c-96ac-aa02fdbff622/battery-level"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"86"},{"key":"ETag","value":"W/\"56-wi6/Cp3Y8JVv01N8ihy0A8aZQ9Y\""},{"key":"Date","value":"Fri, 28 Jul 2023 07:22:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Loaded drones fetched successfully\",\n    \"data\": {\n        \"data\": 75\n    }\n}"}],"_postman_id":"8cbfa825-a1a8-4c11-92fb-3805c46d8305"},{"name":"Get drone by Id","id":"052ca308-52e4-4ce7-a64c-2812f9345939","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5500/api/drones/600f9243-9fde-4e5c-96ac-aa02fdbff622","urlObject":{"protocol":"http","port":"5500","path":["api","drones","600f9243-9fde-4e5c-96ac-aa02fdbff622"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9a4ed6ce-b7d4-4e51-9634-1239ed2e874b","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/drones/600f9243-9fde-4e5c-96ac-aa02fdbff622"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"639"},{"key":"ETag","value":"W/\"27f-KRFOOPjdJ1eC9z67ODl6T7/80T8\""},{"key":"Date","value":"Fri, 28 Jul 2023 07:42:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Drone fetched successfully\",\n    \"data\": {\n        \"data\": {\n            \"id\": \"600f9243-9fde-4e5c-96ac-aa02fdbff622\",\n            \"serialNo\": \"xeVTVlAtttPTYABz\",\n            \"model\": \"HEAVYWEIGHT\",\n            \"weightLimit\": \"500\",\n            \"remainingWeight\": \"400\",\n            \"batteryCapacity\": 100,\n            \"remainingBattery\": 75,\n            \"state\": \"LOADING\",\n            \"createdAt\": \"2023-07-28T05:57:35.005Z\",\n            \"updatedAt\": \"2023-07-28T05:58:49.908Z\",\n            \"medications\": [\n                {\n                    \"id\": \"bcba2a32-6f22-4243-bf99-d733acee8bf5\",\n                    \"droneId\": \"600f9243-9fde-4e5c-96ac-aa02fdbff622\",\n                    \"name\": \"SODIQ_MEDICATION-1\",\n                    \"weight\": \"100\",\n                    \"code\": \"Y_HMTQ8E\",\n                    \"image\": \"https://www.image.com\",\n                    \"createdAt\": \"2023-07-28T05:58:49.899Z\",\n                    \"updatedAt\": \"2023-07-28T05:58:49.899Z\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"052ca308-52e4-4ce7-a64c-2812f9345939"}]}