Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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

GET /api/rest/dam?headers=false 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?headers=false'
  --header 'Authorization: Basic ZGVtbzpkZW1vcHdk'

JavaScript/fetch

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

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)

HttpResponse<String> response = Unirest.get("https://club-wed.wedia-group.com/api/rest/dam")
  .queryString("headers", false)
  .header("Authorization", "Basic ZGVtbzpkZW1vcHdk")
  .asString();

Python/Request

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.

  • No labels