Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save EdwardCTaylor/19efd23b951b877c1fcdbef85164c0e5 to your computer and use it in GitHub Desktop.
Save EdwardCTaylor/19efd23b951b877c1fcdbef85164c0e5 to your computer and use it in GitHub Desktop.
Example API Output
// GET /room_rates/[:hotel_id]?from_date=[:datetime]&to_date=[:datetime]&last_updated_at=[:datetime]
// Response:
{
...hotel metadata
rooms: [
{
...room metadata
policies: [
...policy metadata (cancellation/breakfast etc)
rates:[
'2021-04-01': price
'2021-04-02': price
'2021-04-03': price
...rates covering specified range
]
...rate metadata, currency etc
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment