Create a new fleet
POST/management/fleets
Create handles the HTTP request to create a new fleet. It parses the request body into a CreateFleetDTO, validates the input, and calls the fleet service to create the fleet. On success, it returns the created fleet with HTTP 201 status. On error, it returns an appropriate HTTP error status and message.
Request
Responses
- 201
- 422
Created
Unprocessable Entity