Retrieve the list of gallery entries associated with given product
GET
/V1/products/{sku}/media
curl \
--request 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 (200)
<?xml version="1.0" encoding="UTF-8"?>
<root type="array">
<root>
<id type="integer">42</id>
<media-type>string</media-type>
<label>string</label>
<position type="integer">42</position>
<disabled type="boolean">true</disabled>
<types type="array">
<type>string</type>
</types>
<file>string</file>
<content>
<base64-encoded-data>string</base64-encoded-data>
<type>string</type>
<name>string</name>
</content>
<extension-attributes>
<video-content>
<media-type>string</media-type>
<video-provider>string</video-provider>
<video-url>string</video-url>
<video-title>string</video-title>
<video-description>string</video-description>
<video-metadata>string</video-metadata>
</video-content>
</extension-attributes>
</root>
</root>
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"
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>