Closed StPfeffer closed 3 weeks ago
Added new routes to get and delete the vehicle documents. Added a new route to update a country by it's ID.
/api/v1/vehicles/documents/:documentId
/api/v1/countries/:countryId
/api/v1/vehicles/documents/:statusId
{ "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" }
{ "name": "Brasil", "alpha2": "BR", "alpha3": "BRA", "numeric3": "076" }
{ "id": "cd2aafe9-a9ed-4a91-829d-de1fd97b0768", "name": "Brasil", "alpha2": "BR", "alpha3": "BRA", "numeric3": "076" }
cargo clippy --all -- -D warnings
cargo fmt --all -- --check
cargo test
mod.rs
Description
Added new routes to get and delete the vehicle documents. Added a new route to update a country by it's ID.
Endpoints
/api/v1/vehicles/documents/:documentId
/api/v1/countries/:countryId
/api/v1/vehicles/documents/:statusId
Payloads
Returns the vehicle document referring to the given ID
Response
Updates the country referring to the given ID
Request
Response
Deletes the vehicle document referring to the given ID
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).