injected service use to handle the catalog related operations
injected logger used to handle the logging
request context [headers, body, params, query].
params.productId
is required201 Status Created
This handler is used to copy a product by applying the following steps in sequence:
Get the productId from params
Copy the product (productService.copyProduct)
Get the copied product (productService.getOneProductByIdAndAggregate)
Return the copied product
Error
404 NBError Not Found
500 NBError Internal Server Error
Generated using TypeDoc
Duplicate product handler