Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

(LOWER(subTypeOp) = 'watermark') OR (object.private != 1)

Listing all renditions for a media

There are too many renditions to list in this document, and there is an API you can invoke to list all the variations of a given asset : 

https://club-wed.wedia-group.com/api/wedia/dam/?export=swagger#/default/get_api_wedia_dam_variations

or if you prefer the REDOC format :

https://club-wed.wedia-group.com/api/wedia/dam/?export=redoc#/paths/~1api~1wedia~1dam~1variations/get

For example, for an “asset” of id “113” :

Code Block
breakoutModewide
curl -X GET "https://club-wed.wedia-group.com:443/api/wedia/dam/variations?object=asset&id=113" -H "accept: */*"

Using the REST API to get assets and players

...

Info

Querying the REST API is detailed in the REST API documentation, for the endpoint /api/rest/dam. This endpoint documentation can be obtained via the URL /api/rest/doc/dam, particularly in the documentation section named Asset Collections, which you can directly access via the URL api/rest/doc/dam?tag=assets.

To obtain a list of media, simply call /api/rest/dam/asset, which will return data for all collections.

You can restrict your query to only one collection by using /api/rest/dam/data/<the desired collection>, or only certain collection by indicating the list of collections separated by commas, i.e., /api/rest/dam/data/<list of collections separated by commas>.

The response is a JSON where the $.response.data section lists the different media with:

  • An identifier (unique per collection) in the id property.

  • A UUID (unique across the entire solution) in the $uuid property.

You can also obtain the list of existing variations and/or the list of existing players for each media.

...

Using the REST API to get assets and players


Using the REST API, you can query the dam to return a list of media with conditions

Info

Querying the REST API is detailed in the REST API documentation, for the endpoint /api/rest/dam. This endpoint documentation can be obtained via the URL /api/rest/doc/dam, particularly in the documentation section named Asset Collections, which you can directly access via the URL api/rest/doc/dam?tag=assets.

To obtain a list of media, simply call /api/rest/dam/asset, which will return data for all collections.

You can restrict your query to only one collection by using /api/rest/dam/data/<the desired collection>, or only certain collection by indicating the list of collections separated by commas, i.e., /api/rest/dam/data/<list of collections separated by commas>.

The response is a JSON where the $.response.data section lists the different media with:

  • An identifier (unique per collection) in the id property.

  • A UUID (unique across the entire solution) in the $uuid property.

Listing all renditions for a media

There are too many renditions to list in this document, and there is an API you can invoke to list all the variations of a given asset : 

https://club-wed.wedia-group.com/api/wedia/dam/?export=swagger#/default/get_api_wedia_dam_variations

or if you prefer the REDOC format :

https://club-wed.wedia-group.com/api/wedia/dam/?export=redoc#/paths/~1api~1wedia~1dam~1variations/get

You can get the URLs of the variations and/or players directly, for a specific media, by adding to the end of the URI either the UUID, /api/rest/dam/<uuid>, or the collection and the identifier, /api/rest/dam/<collection>/<id>.

For example, for an “asset” of id “113” :

Code Block
breakoutModewide
curl -X GET "https://club-wed.wedia-group.com:443/api/wedia/dam/variations?object=asset&id=113" -H "accept: */*"

To get the list of variation URLs, use the parameter variations=uri, and for the list of player URLs, use the parameter players=uri.

...