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