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

Compare with Current View Page History

Version 1 Next »

/api/domains

Lists all domains.

This resource is available only for Global admin and only in multi-domain configurations.

Resource Information

Request Parameters

None.

Response Structure

JSON response contains array "domains" that contains multiple domain objects with following definition:

NameDescription
idDomain identifier
nameDomain name
descriptionDomain description
activeBoolean flag indicating if domain is active
dateFormatDomain date format - default: "M/d/yyyy"
timeFormatDomain time format - default: "h:mm:ss a"
timeZoneDomain time zone
parameters

Array containing all additional parameters

Sample Request / Response

Using curl:

curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/domains

The JSON format response:

{
  "domains": [
    {
      "id": "123",
      "name": "My Domain",
      "description": "This is my domain description",
      "active": true,
      "dateFormat": "yyyy-MM-dd",
      "timeFormat": "hh:mm:ss",
      "timeZone": "Asia/Hong_Kong",
      "parameters": []
    },
    {
      "id": "345",
      "name": "Second Domain",
      "description": "Another description",
      "active": fa;se,
      "dateFormat": null,
      "timeFormat": null,
      "timeZone": null,
      "parameters": []
    }
  ]
}
  • No labels