StPfeffer / rusty-roads

A simple route manager application written in Rust
MIT License
0 stars 0 forks source link

Feature Request: Added API Routes to Update Data #100

Closed StPfeffer closed 2 weeks ago

StPfeffer commented 2 weeks ago

Description

Created the following API endpoints:

Endpoints

Method Endpoint Description
PUT /api/v1/collaborators/:collaboratorId Update the collaborator referring to the given ID.
PUT /api/v1/collaborators/:collaboratorId/drivers Update the driver referring to the given collaborator ID.
PUT /api/v1/collaborators/drivers/:driverId Update the driver referring to the given ID.
PUT /api/v1/vehicles/:vehicleId Update the vehicle referring to the given ID.
PUT /api/v1/vehicles/:vehicleId/documents Update the vehicle document referring to the given vehicle ID.
PUT /api/v1/vehicles/documents/:documentId Update the vehicle document referring to the given ID.
PUT /api/v1/routes/:routeId Update the route referring to the given ID.

Payloads

The payloads match those required by the corresponding POST routes for each specific entity API endpoint.

Type of change

Checklist