Closed StPfeffer closed 3 weeks ago
Implementation of the route status scope.
/api/v1/routes/status
/api/v1/routes/status/:statusId
/api/v1/routes/:routeId/status
/api/v1/routes/staus
{ "status": [ { "id": "a8449322-e5c9-47d5-89f8-d767172476a8", "code": "CREATED", "description": "Created" }, { "id": "520aeebc-3a48-4875-8aea-a1bd2ce1369a", "code": "IN_PROGRESS", "description": "In progress" } ], "results": 2 }
{ "id": "a8449322-e5c9-47d5-89f8-d767172476a8", "code": "CREATED", "description": "Created" }
{ "code": "IN_PROGRESS", "description": "In progress" }
{ "id": "a8449322-e5c9-47d5-86f8-d5867972236a8", "code": "IN_PROGRESS", "description": "In progress" }
cargo clippy --all -- -D warnings
cargo fmt --all -- --check
cargo test
mod.rs
Description
Implementation of the route status scope.
Endpoints
/api/v1/routes/status
/api/v1/routes/status/:statusId
/api/v1/routes/:routeId/status
/api/v1/routes/staus
/api/v1/routes/status/:statusId
Payloads
List all the available route status
Response
Returns the status referring to the given ID (or route ID)
Response
Creates a route status
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).