getMediaContents

get

/ccadmin/v1/files/mediaContents

Get Media Contents. Get a list of media folder contents. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
Query Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getMediaContents_response
Type: object
Show Source
Nested Schema : items
Type: array
Result items.
Show Source
Nested Schema : metadata
Type: object
Seo meta info for product.
Show Source
Nested Schema : sort
Type: array
Sort directive.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : metadata
Type: object
Seo meta info for image.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "total":1,
    "metadata":{
        "altText":"city background",
        "titleText":"city background"
    },
    "offset":0,
    "limit":250,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/files/mediaContents?folder=all&sort=name%3Aasc&filter=city"
        }
    ],
    "sort":[
        {
            "property":"name",
            "order":"asc"
        }
    ],
    "items":[
        {
            "path":"/general/city-background.jpg",
            "extension":"jpg",
            "size":102568,
            "name":"city-background.jpg",
            "checksum":4.9987243387919718E18,
            "repositoryId":"/general/city-background.jpg",
            "lastModified":"2014-12-16 12:28:14.0",
            "type":"file"
        }
    ]
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |33114|There was an error while attempting to execute the query.| |33112|There was an error while attempting to create the query.| |33113|There was an error while attempting to get the storage system view.| |33110|The "folder" param must be a valid folder.| |33111|Storage system does not support this query.| |33109|The "folder" param is required.| |33108|The "q" param is not allowed.|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top