Image Service
Uploading a new product image
-
Use the
POST
products/slideshow endpoint to upload a new image to the slideshow of the product. If you want to replace an existing image, delete that image first using theDELETE
products/slideshow/{imageName} endpoint. -
After having added a new image to the slideshow, you can assign the image to a product using the
PATCH
products endpoint. Update the product image by addressing the attribute pathproductImage
.
Example:
[{
"op": "add",
"path": "/productImage",
"value": "product_picture.png"
}]