Get a team by ID
GET/management/teams/:id
FindOne handles HTTP requests to retrieve a single team by its ID. It parses the "id" parameter from the request URL, validates it, and calls the teamService to fetch the team. If the ID is invalid, it returns a 422 Unprocessable Entity response. If the team is not found, it returns a 404 Not Found response. On success, it returns the team data with a 200 OK response.
Request
Responses
- 200
- 404
OK
Not Found