injected preference service used to get the preference by id
target field for userId
target field for preferenceId
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
This validator will check if the preference belongs to the user by applying the following steps in sequence:
Get userId from context.params
Get preferenceId from context.params
Check if the preference exists
Check if the preference belongs to the user
404 NBError Not Found
403 NBError Forbidden
Generated using TypeDoc
Preference belongs to user validator