GET api/Country
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of Country| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
None. |
|
| nationality | string |
None. |
|
| flag_img | Binary |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"name": "sample string 2",
"nationality": "sample string 3",
"flag_img": null
},
{
"id": 1,
"name": "sample string 2",
"nationality": "sample string 3",
"flag_img": null
}
]
application/xml, text/xml
Sample:
<ArrayOfCountry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiLite.Models">
<Country>
<flag_img xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Data.Linq" i:nil="true" />
<id>1</id>
<name>sample string 2</name>
<nationality>sample string 3</nationality>
</Country>
<Country>
<flag_img xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Data.Linq" i:nil="true" />
<id>1</id>
<name>sample string 2</name>
<nationality>sample string 3</nationality>
</Country>
</ArrayOfCountry>