This resource represents the Destinations (the actual place) that can be assigned to Rentals.
Name | Type | Read/Write | Description |
---|---|---|---|
id | Integer | Read | Destination’s id. |
aliases | Object | Read | Destination’s aliases, list of locales described in enums section. |
ancestor_ids | Array | Read | Array of destination’s ancestor destinations ids. |
counter | Integer | Read | Destination’s use counter for rentals. |
fullname | Object | Read | Destination’s fullname, list of locales described in enums section. |
name | Object | Read | Destination’s name, list of locales described in enums section. |
permalink | Object | Read | Destination’s permalink, list of locales described in enums section. |
created_at | Time | Read | Destination’s create time. |
updated_at | Time | Read | Destination’s update time. |
List all destinations for a given account(s).
GET /destinations
{
"destinations": [
{
"id": 3212,
"aliases": {
},
"ancestor_ids": [
1
],
"counter": 1,
"fullname": {
"en": "Europe, World"
},
"name": {
"en": "Europe"
},
"permalink": {
"en": "world/europe"
}
}
],
"meta": {
}
}
Returns a single destination identified by ID.
GET /destinations/:destination_id
{
"destinations": [
{
"id": 3212,
"aliases": {
},
"ancestor_ids": [
1
],
"counter": 1,
"fullname": {
"en": "Europe, World"
},
"name": {
"en": "Europe"
},
"permalink": {
"en": "world/europe"
}
}
],
"meta": {
}
}