HotelCard Logo

HotelCard API Endpoints

API Gateway

Status: Checking...

CommonService

Status: Checking...

Method URI Description Route Parameters Query Parameters
GET|HEAD api/status Check the status of the ApiGateway. None None
GET|HEAD api/common/status Check the status of the CommonService. None None
GET|HEAD api/common/currency/all Retrieve all currencies. None None
GET|HEAD api/common/currency/rate Retrieve exchange rate between two currencies. None from_currency, to_currency
GET|HEAD api/common/currency/rates Retrieve all exchange rates between two currencies. None from_currency, to_currency
GET|HEAD api/common/currency/rate/by-date Retrieve exchange rate between two currencies by date. None from_currency, to_currency, date
GET|HEAD api/common/currency/rounding-value Retrieve the rounding value for a specified currency. None currency
GET|HEAD api/common/currency/{code} Retrieve currency details by code. code code
GET|HEAD api/common/country/name-for-es/{id} Retrieve country names formatted for Elasticsearch. id None
GET|HEAD api/common/country/{locale}/all Retrieve all countries for the specified locale. locale None
POST api/common/country/{locale}/by-ids Retrieve countries by IDs for the specified locale. locale ids
GET|HEAD api/common/country/{locale}/dropdown Retrieve a dropdown list of countries for the specified locale. locale None
GET|HEAD api/common/country/{locale}/code/{code} Retrieve country details by country code for the specified locale. locale, code None
GET|HEAD api/common/country/{locale}/{id} Retrieve country details by ID for the specified locale. locale, id None
GET|HEAD api/common/region/name-for-es/{id} Retrieve region names formatted for Elasticsearch. id None
GET|HEAD api/common/region/all-names-for-es Retrieve all regions names formatted for Elasticsearch. None None
POST api/common/region/all-with-country-names-es Retrieve region and country names formatted for Elasticsearch indexing. None ids
GET|HEAD api/common/region/{locale}/all Retrieve all regions for the specified locale. locale None
GET|HEAD api/common/region/{locale}/dropdown Retrieve a dropdown list of regions for the specified locale. locale None
GET|HEAD api/common/region/{locale}/slug/{slug} Retrieve region details by region slug for the specified locale. locale, slug None
GET|HEAD api/common/region/{locale}/{id} Retrieve region details by ID for the specified locale. locale, id None
POST api/common/region/{locale}/by-country-ids Retrieve regions by country IDs for the specified locale. locale country_ids
GET|HEAD api/common/region/{locale}/popular/featured Retrieve region details by popular for the specified locale. locale None
GET|HEAD api/{fallbackPlaceholder} Handle undefined routes with a JSON error response. fallbackPlaceholder None