Overview
The resource configurations for these end points are generated automatically.
Automatic generation
The automatic configuration is essentially set by structure or field tagsDAM Services are the standard endpoint for accessing and updating the DAM resources.
As the datamodel from one DAM to another will change, to accomodate the company’s structure and requirements, these services will adapt from one DAM to another automatically, so you cannot reuse exactly DAM Services from one DAM to another.
To setup how services are generated, the configuration is mostly set up by adding “tags” to the datamodels. This is mostly done by your Wedia Account Manager at project setup. The list of tags can be found here. You can see the result of the automatic generation by the "Debugging the configuration" section (see below).
Rules to select and configure exposed resources
Rules to select and configure exposed fields
End points
Endpoints
The general form of end points endpoints for resources in this category is as follows:
...
See also: https://crossmedia.atlassian.net/wiki/spaces/WD/pages/829718559/DAM+Services#Facade-end-points
...
Endpoint to retrieve a list of assets and resources
GET api/rest/dam/data/{resource}
This end point allows you to list, search (using fulltext, or structured, SQL-like queries), or get suggestions (autocompletion), or get tree structures (see fast tree service).
You get This token returns a limited list of resource instances and a token that allows you to get go through the continuationnext results, still limited, with its token that allows you to get the continuation and so on.If you need paginated results, please use the next endpoint.
To get several resources, use comma-separated list. By example, GET api/rest/dam/data/asset,legacy
.
Info |
---|
You can find more details on how to use this end point here. |
End point to retrieve a paginated list of assets and resources
GET api/rest/dam/data/{resource}/list
This service does the same thing as the service described above, but in the form of a so-called paginated list: an index of the first instance of the desired resource and of the last instance is specified. We can thus obtain an interval of instances called page.
...
POST api/rest/dam/data/{resource}/{id}/patch
POST api/rest/dam/data/{resource}
Info |
---|
You can find more details on how to use these end points here |
...
Info |
---|
You can find more details on how to use these end point here |
Configuration (Resources)
...
Override configuration
Configuration
...
Debugging automatic configuration generation
You can get the autogeneration log in the "Debugging the configuration" section of the Designer API:
...