Get drivers by team Id
GET/management/teams/:team_id/drivers
FindDrivers handles HTTP GET requests to retrieve driver records associated with a specific team. It expects the team Id as a URL parameter, validates it, and returns a paginated list of drivers belonging to that team. Returns appropriate HTTP status codes and error messages for invalid team Ids or if no drivers are found.
Request
Responses
- 200
- 422
OK
Unprocessable Entity