GET api/countries/{id}

Get a Country by id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The primary key of the country in the Hobsons database.

integer

Required

Body Parameters

None.

Response Information

Resource Description

CountryDto
NameDescriptionTypeAdditional information
Id

The primary key of the record in the Hobsons database.

integer

None.

Name

string

Required

String length: inclusive between 0 and 100

Code

The client system code for the given record.

string

Required

String length: inclusive between 0 and 100

PhoneCode

The international dialling code prefix for the given record.

string

Required

String length: inclusive between 0 and 8

Position

Can be used for ordering a collection of records if configured.

integer

Range: inclusive between 0 and 99999999

Inactive

boolean

Required

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Code": "sample string 3",
  "PhoneCode": "sample string 4",
  "Position": 1,
  "Inactive": true
}