Remove driver from team
DELETE/management/drivers/:driverId/teams/:teamId
RemoveFromTeam handles the HTTP request to remove a driver from a team. It expects the driver ID and team ID as URL parameters ("id" and "teamId"). The method parses these parameters, validates them, and calls the driverService to perform the removal. Returns a 200 OK status with a success message if the operation is successful. Returns a 422 Unprocessable Entity status with an error message if the IDs are invalid or if the removal fails.
Request
Responses
- 200
- 422
Driver removed from team
Unprocessable Entity