Closed StPfeffer closed 3 weeks ago
Implementation of the vehicle document scope.
/api/v1/routes
/api/v1/routes/:routeId
{ "routes": [ { "id": "229b492c-06a0-4590-8ef5-ab75cd0f9e75", "startedAt": "2024-06-04T01:48:32.884038", "endedAt": null, "totalDistance": "0", "createdAt": "2024-06-04T01:48:32.884038", "updatedAt": "2024-06-04T01:48:32.884038", "initialLat": "-24.95564670", "initialLong": "-53.46622770", "finalLat": null, "finalLong": null, "initialAddressId": null, "finalAddressId": null, "vehicleId": "b87d1704-c957-4ee2-b378-f7be43c10b85" } ], "results": 1 }
{ "id": "229b492c-06a0-4590-8ef5-ab75cd0f9e75", "startedAt": "2024-06-04T01:48:32.884038", "endedAt": null, "totalDistance": "0", "createdAt": "2024-06-04T01:48:32.884038", "updatedAt": "2024-06-04T01:48:32.884038", "initialLat": "-24.95564670", "initialLong": "-53.46622770", "finalLat": null, "finalLong": null, "initialAddressId": null, "finalAddressId": null, "vehicleId": "b87d1704-c957-4ee2-b378-f7be43c10b85" }
{ "initialLat": "-24.9556467", "initialLong": "-53.4662277", "finalLat": null, "finalLong": null, "initialAddressId": null, "finalAddressId": null, "vehicleId": "b87d1704-c957-4ee2-b378-f7be43c10b85" }
{ "id": "3264f0d1-e8fd-43be-b7b0-a6b14afc779b", "startedAt": "2024-06-04T01:46:06.917895", "endedAt": null, "totalDistance": "0", "createdAt": "2024-06-04T01:46:06.917895", "updatedAt": "2024-06-04T01:46:06.917895", "initialLat": "-24.95564670", "initialLong": "-53.46622770", "finalLat": null, "finalLong": null, "initialAddressId": null, "finalAddressId": null, "vehicleId": "b87d1704-c957-4ee2-b378-f7be43c10b85" }
cargo clippy --all -- -D warnings
cargo fmt --all -- --check
cargo test
mod.rs
Description
Implementation of the vehicle document scope.
Endpoints
/api/v1/routes
/api/v1/routes/:routeId
/api/v1/routes
/api/v1/routes/:routeId
Payloads
List all routes
Response
Get a route
Response
Create a route
Request
Response
Delete a route
Response
Type of change
Checklist
cargo clippy --all -- -D warnings
just before my last commit and fixed any issue that was found.cargo fmt --all -- --check
just before my last commit.cargo test
just before my last commit and all tests passed.mod.rs
file within its own folder, and in any parent folder(s).