Food Hygiene Rating API Version 2 Resource Detail
GET Countries/{id}
Returns details of a single country, selected by Id.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| id | The target Country Id. |
Define this parameter in the request URI. |
Request body formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"nameKey": "sample string 3",
"code": "sample string 4",
"links": [
{
"rel": "sample string 1",
"href": "sample string 2"
},
{
"rel": "sample string 1",
"href": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<country xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FHRS.Model.Basic">
<links xmlns="http://schemas.datacontract.org/2004/07/FHRS.Model.MetaLinks">
<link>
<href>sample string 2</href>
<rel>sample string 1</rel>
</link>
<link>
<href>sample string 2</href>
<rel>sample string 1</rel>
</link>
</links>
<code>sample string 4</code>
<id>1</id>
<name>sample string 2</name>
<nameKey>sample string 3</nameKey>
</country>
application/x-www-form-urlencoded
Sample:
Sample not available.