injected service use to handle the product related operations
injected logger used to handle the logging
request context [headers, body, params, query]. Note:
params
is requiredparams.productId
is required200 Status Ok
This handler is used to get a list of product variants by applying the following steps in sequence:
Parse the query to get the pagination options (util.parsePaginatedListQuery)
Check if the pagination options are valid
Get the product variants list (productVariantService.listPaginatedProductVariants)
Return the product variants list
Error
400 NBError Bad Request
500 NBError Internal Server Error
Generated using TypeDoc
Get product variant list handler