injected service use to handle the user related operations
injected custom field definitions
injected logger used to handle the logging
request context [headers, body, params, query]. Note:
params.id
is required200 Status OK
This handler will get user by id by applying the following steps in sequence:
Get userId from context.params
Get user by id (userService.getUserById)
Normalize user response (normalizeUserResponse)
Return user
Error
404 NBError Not Found
500 NBError Internal Server Error
Generated using TypeDoc
Get user by id handler