getUser

@Get(value = "{id}/")
open override fun getUser(@PathVariable id: String): HttpResponse<GetUserResponse>

Handles GET users/{id}/.

Translates the application-layer result into an HTTP response:

  • 200 OK with the user DTO if the user is found

  • 404 Not Found if 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.