Retrieve the list of gallery entries associated with given product
Retrieve the list of gallery entries associated with given product
GET /V1/products/{sku}/media
curl \
-X GET https://magento2.winkelstraat.mac/rest/all/V1/products/{sku}/media
Response examples (200)
[
{
"id": 42,
"media_type": "string",
"label": "string",
"position": 42,
"disabled": true,
"types": [
"string"
],
"file": "string",
"content": {
"base64_encoded_data": "string",
"type": "string",
"name": "string"
},
"extension_attributes": {
"video_content": {
"media_type": "string",
"video_provider": "string",
"video_url": "string",
"video_title": "string",
"video_description": "string",
"video_metadata": "string"
}
}
}
]
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}