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