Skip to content

artur-mal/travelodge-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Travelodge the biggest low-cost hotel chain in UK. Unfortunately they don’t provide official access to their API. My project is an attempt to create a complete API for this brand.

What was my motivation?

The main motivation was to improve my programming skills and learn something new.

What my application does?

My app can create a list of London’s hotels and fetch fares for each of then up to 354 days ahead. The app also store old prices for analytic purposes such as when is the best time to book a room.

Challenges I faced.

Due to high volume of requests during fetching all prices for all hotels, server error 500 was returned. To solve the problem for each request random browser id is used.

Features I want to implement in the future.

At the moment my app covers search stage only. I’d like to add book, manage and post booking features.


API documentation.

All API responses are JSON. Responses larger then 4KB are compressed.


Methods description:

Hotels:

/hotels - GET all hotels details (Greater London area at the moment)

/hotels/{id} - GET hotel details identified by id

/hotels/name/{name} - GET all hotels with “name” in title

/hotels/{id} – DELETE hotel identified by id

/hotels/updateAll – update hotels list and and their details from supplier’s website


Current prices:

/hotels/{id}/allPrices - GET all fares for hotel identified by id

/hotels/{id}/prices?from={yyyy-mm-dd}&to={yyyy-mm-dd} GET fares between dates for hotel identified by id

/hotels/{id}/updatePrices - update prices from supplier’s website for hotel identified by id

/hotels/updatePrices - update prices from supplier’s website for all hotels


Old prices:

/hotels/{hotel_id}/priceHistory/{yyyy-mm-dd} - GET old fares for the date

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages