v1

latestOpenAPI 3.0.02026-07-2455104.8 MB
Product Media

View product media

Returns details of a single product media

get/api/v1/productMedia/{id}

Path parameters

idstring required

Resource identifier.

Example:17

The resource's identifier.

Response

Operation completed successfully.

Example response

{
  "data": {
    "id": "5",
    "product": {
      "id": "1"
    },
    "title": "Vitra Eames Plastic Chair",
    "description": "Front picture of the Vitra Eames Plastic Chair",
    "keyword": "defaultImage",
    "sort": 1,
    "versions": [
      {
        "id": "17",
        "version": 3,
        "url": "/api/productMedia/5/versions/3",
        "remark": "Initial Version",
        "filename": "test.png",
        "size": 12345,
        "updatedAt": "2024-02-16T14:32:41+02:00"
      }
    ],
    "currentVersion": {
      "id": "17",
      "version": 3,
      "url": "/api/productMedia/5/versions/3",
      "remark": "Initial Version",
      "filename": "test.png",
      "size": 12345,
      "updatedAt": "2024-02-16T14:32:41+02:00"
    },
    "updatedAt": "2024-02-16T14:32:41+02:00"
  },
  "extra": {
    "totalCount": 1,
    "page": {
      "number": 1,
      "size": 10
    }
  }
}