GET api/Countries/{id}

Get countries by ID

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Country
NameDescriptionTypeAdditional information
id_country

integer

None.

country_code

string

Required

String length: inclusive between 2 and 2

country_name

string

Required

String length: inclusive between 1 and 100

Response Formats

application/json, text/json

Sample:
{
  "id_country": 1,
  "country_code": "sample string 2",
  "country_name": "sample string 3"
}

application/xml, text/xml

Sample:
<Country xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FABITrackAPI.Models">
  <country_code>sample string 2</country_code>
  <country_name>sample string 3</country_name>
  <id_country>1</id_country>
</Country>