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