Open popand opened 8 years ago
// /productservice/v1/products/retrieveAllProductDetail:
{
"content": [/* skipped */],
"last": true,
"totalElements": 10,
"totalPages": 1,
"sort": null,
"numberOfElements": 10,
"first": true,
"size": 0,
"number": 0
}
It shows that it's the last page and there are only 10
total elements, when there are actually 19
.
To keep things easier when creating or updating a product, just update the following fields:
Create Product: http://54.84.159.179:8765/productservice/v1/admin/products
Update Product: http://54.84.159.179:8765/productservice/v1/admin/products/{productId}
Request:
Then when dealing with images, previews, videos and purchase options, please use the following apis:
Add Image:
http://54.165.55.11:8765/productservice/v1/admin/products/{productId}/image
Add Preview:
http://54.165.55.11:8765/productservice/v1/admin/products/{productId}/preview
Add Video:
http://54.165.55.11:8765/productservice/v1/admin/products/{productId}/video
Add offer (purchaseOption):
http://54.165.55.11:8765/productservice/v1/admin/products/{productId}/offer