Assign driver to team
POST/management/drivers/:driverId/teams/:teamId
AssignToTeam handles the HTTP request to assign a driver to a team. It expects the driver ID as a URL parameter and the team assignment data in the request body. The method validates the driver ID, parses and validates the request body, and delegates the assignment operation to the driver service. Returns appropriate HTTP status codes and messages based on the outcome.
Request
Responses
- 200
- 422
Driver assigned to team
Unprocessable Entity