Repository navigation
Overall API concepts
All xamoom APIs follow the json:api convetions. These shared conventions, increase productivity, take advantage of generalized tooling. Before getting started with our APIs you should inform yourself about these conventions at the jsonapi.org. After you've done that keep on reading of how the xamoom APIs are structured and how we implemented these conventions for different use cases.
All xamoom API calls work the same way and also the urls to access entities are structured using the same logic. API-ENDPOINT-URL followed by the model you want to access. After that follows either a valid entity id and/or query paramters.
Getting a content entity by id via Integration API.
GET https://xamoom-api-dot-xamoom-cloud.appspot.com/_api/v2/integration/contents/A-VALID-CONTENT-ID
- API-ENDPOINT-URL for Integration API -> https://xamoom-api-dot-xamoom-cloud.appspot.com/_api/v2/integration/
- followed by Model -> contents
- and a valid content id.
All API calls require a valid API key bound to an active system. The API key has to be sent in ** Apikey ** HTTP Header of each and every request.
curl -X GET -H "Content-Type: application/json" -H "Apikey:YOUR-API-KEY" "https://xamoom-api-dot-xamoom-cloud.appspot.com/_api/v2/integration/contents/A-VALID-CONTENT-ID
To filter in queries so called filters can be used as query paramters added to the request url in the following format:
filter[FILTER-NAME]=FILTER-VALUE
Which filter can be used on which models is specified in the documentation of the API endpoint's model specification.
To sort query results you can add a sort query paramters to the request url.
sort=SORTEXPRESSION
You can also combine sort expressions like this:
sort=SORTEXPRESSION1,SORTEXPRESSION2
To specify the sort direction of each sort expression you can add a '+' (ASC, default) or '-' (DESC) to each sort expression.
sort=-SORTEXPRESSION1,+SORTEXPRESSION2
Which sort expressions can be used on which models is specified in the documentation of the API endpoint's model specification.
All queries return their results as pages. In the meta object in the response object of a query you'll always find a cursor for the next page, a boolean "has-more", that tells you if there will is a next page, and an attribute "total", which contains the total number of results for this query.
{
"cursor":"CURSOR-VALUE",
"has-more":true,
"total":42
}You can specify the page size you'll retrieve on each page by adding the query parameter "page[size]" to the request url. Page size defaults to 10 and is limited to a maximum of 100 entities per page.
page[size]=20
To get the next page of a query just append the cursor you've received in the last page result in meta->cursor to the url as query parameter page[cursor]. Do not forget to keep the rest of the url the same. While paging page[size] has to be the same for every page.
page[cursor]=CURSOR-VALUE
Stop paging as soon as a page response meta->has-more flag is false.
All errors returned by the API are returned as json:api error objects. see -> http://jsonapi.org/format/#error-objects
Web: https://xamoom.com - Email: mailto:support@xamoom.com