getUser
@Get(value = "{id}/")
Handles GET users/{id}/.
Translates the application-layer result into an HTTP response:
200 OKwith the user DTO if the user is found404 Not Foundif the user does not exist
Return
An HTTP response containing the user DTO or a not-found status.
Parameters
id
The user identifier received from the path.