Continent¶
A continent groups distribution territories. This resource is read-only and is used to scope rights and deals by region.
Lists Continents¶
GET https://domain.com/api/v1/continents
Headers¶
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Bearer \ |
| Content-Type* | String | application/vnd.api+json |
Response — 200 OK
{
"data": [
{
"type": "continents",
"id": "<ID>",
"attributes": {
"name": "WW"
},
"relationships": {
"territories": {
"links": {
"related": "https://domain.com/api/v1/continents/<ID>/territories",
"self": "https://domain.com/api/v1/continents/<ID>/relationships/territories"
}
}
},
"links": {
"self": "https://domain.com/api/v1/continents/<ID>"
}
}
],
"meta": {
"page": {
"currentPage": 1,
"from": 1,
"lastPage": 1,
"perPage": 20,
"to": 1,
"total": 1
}
},
"jsonapi": {
"version": "1.0"
},
"links": {
"first": "https://domain.com/api/v1/continents?page[number]=1&page[size]=20",
"last": "https://domain.com/api/v1/continents?page[number]=1&page[size]=20"
}
}
Filters¶
| Filter | Example |
|---|---|
| Name | /continents?filter[name]=WW |
| ID | /continents?filter[id]=1 |
Get Continent¶
GET https://domain.com/api/v1/continents/:id
Path Parameters¶
| Name | Type | Description |
|---|---|---|
| id* | Number | Continent ID |
Headers¶
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Bearer \ |
| Content-Type* | String | application/vnd.api+json |
Response — 200 OK
{
"data": {
"type": "continents",
"id": "<ID>",
"attributes": {
"name": "WW"
},
"relationships": {
"territories": {
"links": {
"related": "https://domain.com/api/v1/continents/<ID>/territories",
"self": "https://domain.com/api/v1/continents/<ID>/relationships/territories"
}
}
},
"links": {
"self": "https://domain.com/api/v1/continents/<ID>"
}
},
"jsonapi": {
"version": "1.0"
},
"links": {
"self": "https://domain.com/api/v1/continents/<ID>"
}
}
Response — 404 Not Found