Get a resource by identifier

See Accessing data | Get a resource by identifier

Example

GET https://club-wed.wedia-group.com/api/rest/dam/data/asset/4

Get the 4identifier asset (Type of service: DAM).

Code examples

The following examples are given with a Basic authentication with bogus credentials

HTTP

GET /api/rest/dam/data/asset/4 HTTP/1.1 Authorization: Basic ZGVtbzpkZW1vcHdk Host: club-wed.wedia-group.com

cURL

curl --request GET --url 'https://club-wed.wedia-group.com/api/rest/dam/data/asset/4' --header 'Authorization: Basic ZGVtbzpkZW1vcHdk'

JavaScript/fetch

fetch("https://club-wed.wedia-group.com/api/rest/dam/data/asset/4", { "method": "GET", "headers": { "Authorization": "Basic ZGVtbzpkZW1vcHdk" } }) .then(response => { console.log(response); }) .catch(err => { console.error(err); });

JavaScript/XMLHttpRequest

Java/Unirest (Basic)

Python/Request

Response sample

Since the response may vary depending on the state of the data, the query parameters, the resource configuration, and the data model, a response is presented here that may be somewhat different from what you will get in your implementation. Not all sections are documented here for the same reasons. The debug sections in particular are not documented on this page.

See also Get a resource by its unique identifier (Example) | Response sample