Skip to content

Instantly share code, notes, and snippets.

@ericatsydney
Created September 7, 2016 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericatsydney/5f316f5693e573e2ae2506945fb413a9 to your computer and use it in GitHub Desktop.
Save ericatsydney/5f316f5693e573e2ae2506945fb413a9 to your computer and use it in GitHub Desktop.
{
"OriginLocation": "AU",
"Destinations": [{
"Rank": 1,
"Destination": {
"DestinationLocation": "SEL",
"CountryCode": "KR",
"CountryName": "Korea - Republic Of",
"RegionName": "Asia Pacific",
"MetropolitanAreaName": "Bali",
"Links": [{
"rel": "airportsInCity",
"href": "https://api.test.sabre.com/v1/lists/supported/cities/SEL/airports"
}],
"Type": "City"
}
}, {
"Rank": 2,
"Destination": {
"DestinationLocation": "HKG",
"AirportName": "Hong Kong Int'l",
"CityName": "Hong Kong",
"CountryCode": "HK",
"CountryName": "Hong Kong",
"RegionName": "Asia Pacific",
"Type": "Airport"
}
}, {
"Rank": 3,
"Destination": {
"DestinationLocation": "SGN",
"AirportName": "Ho Chi Minh City",
"CityName": "Ho Chi Minh City",
"CountryCode": "VN",
"CountryName": "Viet Nam",
"RegionName": "Asia Pacific",
"Type": "Airport"
}
}, {
"Rank": 4,
"Destination": {
"DestinationLocation": "AKL",
"AirportName": "International",
"CityName": "Auckland",
"CountryCode": "NZ",
"CountryName": "New Zealand",
"RegionName": "Asia Pacific",
"Type": "Airport"
}
}, {
"Rank": 5,
"Destination": {
"DestinationLocation": "SIN",
"AirportName": "Changi",
"CityName": "Singapore",
"CountryCode": "SG",
"CountryName": "Singapore",
"RegionName": "Asia Pacific",
"Type": "Airport"
}
}, {
"Rank": 6,
"Destination": {
"DestinationLocation": "LON",
"CountryCode": "GB",
"CountryName": "United Kingdom",
"RegionName": "Europe",
"MetropolitanAreaName": "London",
"Links": [{
"rel": "airportsInCity",
"href": "https://api.test.sabre.com/v1/lists/supported/cities/LON/airports"
}],
"Type": "City"
}
}, {
"Rank": 7,
"Destination": {
"DestinationLocation": "BKK",
"CountryCode": "TH",
"CountryName": "Thailand",
"RegionName": "Asia Pacific",
"MetropolitanAreaName": "Bangkok",
"Links": [{
"rel": "airportsInCity",
"href": "https://api.test.sabre.com/v1/lists/supported/cities/BKK/airports"
}],
"Type": "City"
}
}, {
"Rank": 8,
"Destination": {
"DestinationLocation": "BEY",
"AirportName": "International",
"CityName": "Beirut",
"CountryCode": "LB",
"CountryName": "Lebanon",
"RegionName": "Middle East",
"Type": "Airport"
}
}, {
"Rank": 9,
"Destination": {
"DestinationLocation": "TPE",
"CountryCode": "TW",
"CountryName": "Taiwan",
"RegionName": "Asia Pacific",
"MetropolitanAreaName": "Taipei",
"Links": [{
"rel": "airportsInCity",
"href": "https://api.test.sabre.com/v1/lists/supported/cities/TPE/airports"
}],
"Type": "City"
}
}, {
"Rank": 10,
"Destination": {
"DestinationLocation": "SHA",
"CountryCode": "CN",
"CountryName": "China",
"RegionName": "Asia Pacific",
"MetropolitanAreaName": "Shanghai",
"Links": [{
"rel": "airportsInCity",
"href": "https://api.test.sabre.com/v1/lists/supported/cities/SHA/airports"
}],
"Type": "City"
}
}],
"LookBackWeeks": 2,
"Links": [{
"rel": "self",
"href": "https://api.test.sabre.com/v1/lists/top/destinations?origincountry=AU&destinationtype=INTERNATIONAL&topdestinations=10&lookbackweeks=2"
}, {
"rel": "linkTemplate",
"href": "https://api.test.sabre.com/v1/lists/top/destinations?origin=<origin>&origincountry=<origincountry>&topdestinations=<topdestinations>&destinationtype=<destinationtype>&theme=<theme>&destinationcountry=<destinationcountry>&region=<region>&lookbackweeks=<lookbackweeks>"
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment