{"info":{"_postman_id":"0b598d40-4228-41e1-bbac-fba7c055a987","name":"Courier Tracking Application","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"23090035","collectionId":"0b598d40-4228-41e1-bbac-fba7c055a987","publishedId":"2sAYkAQ2fr","public":true,"customColor":{"top-bar":"212121","right-sidebar":"303030","highlight":"145988"},"publishDate":"2025-03-13T15:35:05.000Z"},"item":[{"name":"public/actuator/info","id":"e7bb2c8b-acd3-4a7f-af8c-bfaae13645be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{API_URL}}/public/actuator/info","urlObject":{"path":["public","actuator","info"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"d9712c64-bee2-4ee3-b416-d52baec38894","name":"public/actuator/info","originalRequest":{"method":"GET","header":[],"url":"{{API_URL}}/public/actuator/info"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/vnd.spring-boot.actuator.v3+json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 02 Feb 2025 11:23:09 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"application\": {\n        \"name\": \"courier-tracking-app\",\n        \"description\": \"Courier Tracking Application\",\n        \"version\": \"1.0.0\"\n    }\n}"}],"_postman_id":"e7bb2c8b-acd3-4a7f-af8c-bfaae13645be"},{"name":"public/actuator/health","id":"e2914d77-2a8b-46c1-8221-57fd86d91994","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{API_URL}}/public/actuator/health","urlObject":{"path":["public","actuator","health"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"80b27346-3513-4823-af9b-a72303d7966d","name":"public/actuator/health","originalRequest":{"method":"GET","header":[],"url":"{{API_URL}}/public/actuator/health"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/vnd.spring-boot.actuator.v3+json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 02 Feb 2025 11:22:04 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"UP\"\n}"}],"_postman_id":"e2914d77-2a8b-46c1-8221-57fd86d91994"},{"name":"api/v1/couriers/locations","event":[{"listen":"prerequest","script":{"id":"befdc2df-fb8b-460c-b8b6-155e1e66ea9f","exec":["pm.variables.set(\"randomLatitude\", (Math.random() * 180 - 90).toFixed(6));","pm.variables.set(\"randomLongitude\", (Math.random() * 360 - 180).toFixed(6));","","const date = new Date();","const tzOffset = date.getTimezoneOffset() * 60000;","","const localISOTime = (new Date(date - tzOffset)).toISOString().slice(0, -1);","","const offsetMinutes = Math.abs(date.getTimezoneOffset());","const offsetHours = Math.floor(offsetMinutes / 60);","const remainingMinutes = offsetMinutes % 60;","const offsetSign = date.getTimezoneOffset() > 0 ? \"-\" : \"+\";","const formattedOffset = offsetSign +","  (offsetHours < 10 ? \"0\" + offsetHours : offsetHours) + \":\" +","  (remainingMinutes < 10 ? \"0\" + remainingMinutes : remainingMinutes);","","pm.variables.set(\"randomTime\", localISOTime);",""],"type":"text/javascript","packages":{}}}],"id":"0a203b04-48f3-4ee2-a75b-ea923c9deeb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"time\": \"{{randomTime}}\",\n    \"courierId\": \"a3796a22-992e-4aca-a9b3-b2f4c584e6c4\",\n    \"latitude\": 40.9632463,\n    \"longitude\": 29.0630908\n}\n","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/api/v1/couriers/locations","urlObject":{"path":["api","v1","couriers","locations"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"282da9d3-7bcc-4a81-8bf2-5a4a609618e7","name":"api/v1/couriers/locations","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"time\": \"{{randomTime}}\",\n    \"courierId\": \"a3796a22-992e-4aca-a9b3-b2f4c584e6c4\",\n    \"latitude\": 136.320946,\n    \"longitude\": -85.446557\n}\n","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/api/v1/couriers/locations"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"time\": \"2025-01-30T18:52:50.038\",\n    \"isSuccess\": true\n}"}],"_postman_id":"0a203b04-48f3-4ee2-a75b-ea923c9deeb4"},{"name":"api/v1/couriers/{id}/distances/total","id":"382b319d-4294-485f-829a-69080c32522a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{API_URL}}/api/v1/couriers/:id/distances/total","urlObject":{"path":["api","v1","couriers",":id","distances","total"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"4619437a-3d08-4986-84be-c9e9541000fb","name":"api/v1/couriers/{id}/distances/total","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/api/v1/couriers/:id/distances/total","host":["{{API_URL}}"],"path":["api","v1","couriers",":id","distances","total"],"variable":[{"key":"id","value":"a3796a22-992e-4aca-a9b3-b2f4c584e668"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 16 Mar 2025 11:25:10 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"time\": \"2025-03-16T14:25:10.372161\",\n    \"isSuccess\": true,\n    \"content\": {\n        \"totalDistanceKilometers\": 297.5999831568747\n    }\n}"},{"id":"c0f7a007-6356-4a39-bcf2-fc3ec43a7556","name":"api/v1/couriers/{id}/distances/total","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/api/v1/couriers/:id/distances/total","host":["{{API_URL}}"],"path":["api","v1","couriers",":id","distances","total"],"variable":[{"key":"id","value":"f58fed4e-9898-4f99-b269-45bde021944c"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 16 Mar 2025 11:26:01 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"time\": \"2025-03-16T14:26:01.356201\",\n    \"isSuccess\": false,\n    \"header\": \"NOT FOUND ERROR\",\n    \"message\": \"courier not found by id: f58fed4e-9898-4f99-b269-45bde021944c\"\n}"}],"_postman_id":"382b319d-4294-485f-829a-69080c32522a"}]}