{"info":{"_postman_id":"48ff19c9-709b-4f4d-9bdf-4c65a95a75a1","name":"Vehicle Tracking API","description":"<html><head></head><body><p>The solutions need to be able to track vehicles position using GPS navigation. A device emboarded in a vehicle, will communicate with your API to register the vehicle and update its position.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2779067","collectionId":"48ff19c9-709b-4f4d-9bdf-4c65a95a75a1","publishedId":"TzCP88Cd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-04-02T20:06:18.000Z"},"item":[{"name":"Register User","id":"7dc19cdc-84aa-4ce5-8538-7e35f0052c16","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"uche@test.com\",\n    \"username\":\"Uche\",\n    \"password\": \"Paa$$w0rd\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/account/register","description":"<p>Create user that will be eligible to consume the Vehicle endpoints</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","account","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7dc19cdc-84aa-4ce5-8538-7e35f0052c16"},{"name":"Get User Token","id":"d881e705-1762-43fe-9efb-0817f09cd07c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"uche@test.com\",\n    \"password\": \"Paa$$w0rd\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/account/login","description":"<p>When a user has been registered, the user can call this endpoint to retrieve token</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","account","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d881e705-1762-43fe-9efb-0817f09cd07c"},{"name":"Verify User","id":"c790e7a4-5a3f-4fe8-94d2-8161c100a48d","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/account","description":"<p>Used to get the user's status.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","account"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c790e7a4-5a3f-4fe8-94d2-8161c100a48d"},{"name":"Register Vehicle","id":"acedb221-cf6c-4556-9d55-b2b302e5b713","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"User\": \n        { \n            \"Id\" : \"imoh@test.com\"\n        },\n    \"VehicleName\": \"RANGE ROVER\",\n    \"VehicleNumberPlate\": \"MUS994GH\",\n    \"VehicleDevice\" : \n    { \n        \"DeviceName\": \"Chinax\" \n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/vehicles/registerVehicle","description":"<p>This call will register a new vehicle by an authenticated user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","vehicles","registerVehicle"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"acedb221-cf6c-4556-9d55-b2b302e5b713"},{"name":"Register Vehicle Position","id":"6df71296-0d9e-49a0-8996-b1af45becd04","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"UserID\": \"imoh@test.com\",        \n    \"DeviceId\": \"65EC0292-409D-46E8-96A2-AB2AE86E972A\",\n    \"Latitude\": 6.412850,\n    \"Longitude\": 4.087600\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/vehicles/registerVehiclePosition","description":"<p>This call will register a vehicle's position by an authenticated user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","vehicles","registerVehiclePosition"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6df71296-0d9e-49a0-8996-b1af45becd04"},{"name":"Get Vehicle's Position","id":"74d9ae40-5d43-41cc-8687-c7ec7d52edc9","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/Vehicles?userID=uche@test.com&deviceId=65EC0292-409D-46E8-96A2-AB2AE86E972A","description":"<p>This call will retrieve the Vehicle's current position</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","Vehicles"],"host":["localhost"],"query":[{"key":"userID","value":"uche@test.com"},{"key":"deviceId","value":"65EC0292-409D-46E8-96A2-AB2AE86E972A"}],"variable":[]}},"response":[],"_postman_id":"74d9ae40-5d43-41cc-8687-c7ec7d52edc9"},{"name":"Get Vehicle's Position By Date","id":"31eae63a-9608-4c67-9ccd-df48e57aeec6","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/Vehicles/byDate?userID=uche@test.com&deviceId=65EC0292-409D-46E8-96A2-AB2AE86E972A&startDate=2021-03-30&endDate=2021-04-02","description":"<p>This call will retrieve Vehicle's position within date range provided.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","Vehicles","byDate"],"host":["localhost"],"query":[{"key":"userID","value":"uche@test.com"},{"key":"deviceId","value":"65EC0292-409D-46E8-96A2-AB2AE86E972A"},{"key":"startDate","value":"2021-03-30"},{"key":"endDate","value":"2021-04-02"}],"variable":[]}},"response":[],"_postman_id":"31eae63a-9608-4c67-9ccd-df48e57aeec6"}],"variable":[{"key":"jwtToken","value":"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9"}]}