registerUser
@Post(value = "register/")
Handles POST users/register/.
Validates input data, maps incoming DTOs to domain entities, and delegates registration to the application layer.
Response mapping:
200 OKwhen registration succeeds400 Bad Requestwhen payload validation fails401 Unauthorizedwhen the user is already registered500 Internal Server Errorwhen the registration use case reports a failure
Return
An HTTP response representing the registration outcome.
Parameters
request
Registration payload containing user data and credentials data.