Closed StPfeffer closed 2 weeks ago
Created the following API endpoints:
/api/v1/collaborators/:collaboratorId
/api/v1/collaborators/:collaboratorId/drivers
/api/v1/collaborators/drivers/:driverId
/api/v1/vehicles/:vehicleId
/api/v1/vehicles/:vehicleId/documents
/api/v1/vehicles/documents/:documentId
/api/v1/routes/:routeId
The payloads match those required by the corresponding POST routes for each specific entity API endpoint.
cargo clippy --all -- -D warnings
cargo fmt --all -- --check
cargo test
mod.rs
Description
Created the following API endpoints:
Endpoints
/api/v1/collaborators/:collaboratorId
/api/v1/collaborators/:collaboratorId/drivers
/api/v1/collaborators/drivers/:driverId
/api/v1/vehicles/:vehicleId
/api/v1/vehicles/:vehicleId/documents
/api/v1/vehicles/documents/:documentId
/api/v1/routes/:routeId
Payloads
The payloads match those required by the corresponding POST routes for each specific entity API endpoint.
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).