GET api/Countries

Gets a list of all active countries

Requires Authorization

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A IHttpActionResult with countries

Response codes


200 Ok
401 Unauthorized
404 Not Found
500 Internal Server Error
503 Service Unavailable

Country
NameDescriptionTypeAdditional information
Code

Code Example: DK

string

None.

Name

Name Example: Danmark

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": "sample string 3",
  "Name": "sample string 4"
}

application/xml, text/xml

Sample:
<Country xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkingDataService.Common.DTO">
  <Code>sample string 3</Code>
  <Name>sample string 4</Name>
</Country>