Skip to main content

Get a fleet by ID

GET 

/management/fleets/:id

FindOne handles HTTP requests to retrieve a single fleet by its ID. It parses the "id" parameter from the request URL, validates it, and calls the fleetService to fetch the fleet. If the ID is invalid, it returns a 422 Unprocessable Entity response. If the fleet is not found, it returns a 404 Not Found response. On success, it returns the fleet data with a 200 OK response.

Request

Responses

OK