GET api/Country/GetCountries

Returns a list of countries including state objects

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

List of countries

Collection of BO.Models.Country
NameDescriptionTypeAdditional information
CountryId

integer

None.

Name

string

None.

States

Collection of BO.Models.State

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "2",
    "CountryId": 1,
    "Name": "sample string 2",
    "States": {
      "$id": "3",
      "$values": [
        {
          "$id": "4",
          "Name": "sample string 1",
          "StateId": 2,
          "Country": {
            "$ref": "2"
          }
        },
        {
          "$ref": "4"
        }
      ]
    }
  },
  {
    "$ref": "2"
  }
]

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.