HotelCard Logo

HotelCard CommonService Endpoints

CommonService

Status: Checking...

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