Get drivers by team ID
GET/management/teams/:teamId/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