Closed StPfeffer closed 3 weeks ago
Implementation of the vehicle document scope.
/api/v1/vehicles/document
/api/v1/vehicles/:vehicleId/document
{ "documents": [ { "id": "ebd428a5-3f29-4bd2-a337-6bfeadbe187c", "chassisNumber": "KLATF08YIVB363636", "exerciseYear": 2022, "modelYear": 2022, "manufactureYear": 2022, "registrationNumber": "481014772", "color": "White", "make": "Volkswagen", "model": "Gol", "plate": "P688CC", "updatedAt": "2024-06-03T23:59:55.822501", "vehicleId": "b87d1704-c957-4ee2-b378-f7be43c10b85" } ], "results": 1 }
{ "id": "ebd428a5-3f29-4bd2-a337-6bfeadbe187c", "chassisNumber": "KLATF08YIVB363636", "exerciseYear": 2022, "modelYear": 2022, "manufactureYear": 2022, "registrationNumber": "481014772", "color": "White", "make": "Volkswagen", "model": "Gol", "plate": "P688CC", "updatedAt": "2024-06-03T23:59:55.822501", "vehicleId": "b87d1704-c957-4ee2-b378-f7be43c10b85" }
{ "chassisNumber": "KLATF08YIVB363636", "exerciseYear": 2022, "modelYear": 2022, "manufactureYear": 2022, "registrationNumber": "481014772", "color": "White", "make": "Volkswagen", "model": "Gol", "plate": "P688CC" }
cargo clippy --all -- -D warnings
cargo fmt --all -- --check
cargo test
mod.rs
Description
Implementation of the vehicle document scope.
Endpoints
/api/v1/vehicles/document
/api/v1/vehicles/:vehicleId/document
/api/v1/vehicles/:vehicleId/document
/api/v1/vehicles/:vehicleId/document
Payloads
List all vehicles documents
Response
Get a vehicle document
Response
Create a vehicle document
Request
Response
Delete a vehicle document
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).