Get Country List

Get Country List

api/Location

Query String

ParameterRequiredValue
actionMandatory1
startOptionalUser Input

Request Header

ParameterRequiredValue
TokenKeyMandatoryUser Input
PageOptionalUser Input
PerPageOptionalUser Input

Response

ContentList of Country

Example of Response

TokenKey → Your-Key
[
  {
    "CountryID": 14,
    "CountryName": "India"
  }
]

Country Entity

Property NameData Type
CountryIDInteger
CountryNameString

Remarks:

  1. For getting all records at a time do not add Page parameter in request header.

  2. Use PerPage parameter to change maximum number of records per page during population of paginated data; by default, each page contains at most 10 records at a time.

  3. Response header parameter Accept–Ranges will not come with paginated data and other response header parameters will not come for all records population.

  4. If the paginated result is empty, then response header parameter Max–Page will be 0 (zero) and there will be no other page related response header parameter.

  5. Add start in query string only for filtering country list by CountryName.