See Catalogs
Example
GET https://club-wed.wedia-group.com/api/rest/dam?headers=false
Get the service DAM catalog.
Code examples
The following examples are given with a Basic authentication with bogus credentials.
HTTP
Code Block |
---|
GET /api/rest/dam?headers=false HTTP/1.1
Authorization: Basic ZGVtbzpkZW1vcHdk
Host: club-wed.wedia-group.com
|
cURL
Code Block |
---|
curl --request GET
--url 'https://club-wed.wedia-group.com/api/rest/dam?headers=false'
--header 'Authorization: Basic ZGVtbzpkZW1vcHdk'
|
JavaScript/fetch
Code Block |
---|
fetch("https://club-wed.wedia-group.com/api/rest/dam?headers=false", {
"method": "GET",
"headers": {
"Authorization": "Basic ZGVtbzpkZW1vcHdk"
}
})
.then(response => {
console.log(response);
})
.catch(err => {
console.error(err);
});
|
JavaScript/XMLHttpRequest
Code Block |
---|
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://club-wed.wedia-group.com/api/rest/dam?headers=false");
xhr.setRequestHeader("Authorization", "Basic ZGVtbzpkZW1vcHdk");
xhr.send(data);
|
Java/Unirest (Basic)
Code Block |
---|
HttpResponse<String> response = Unirest.get("https://club-wed.wedia-group.com/api/rest/dam")
.queryString("headers", false)
.header("Authorization", "Basic ZGVtbzpkZW1vcHdk")
.asString();
|
Python/Request
Code Block |
---|
import requests
url = "https://club-wed.wedia-group.com/api/rest/dam"
querystring = {"headers":"false"}
payload = ""
headers = {
"Authorization": "Basic ZGVtbzpkZW1vcHdk"
}
response = requests.request("GET", url, data=payload, headers=headers, params=querystring)
print(response.text)
|
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.