Food Hygiene Rating API Version 2 Resource Detail

GET Countries

Returns details of all countries, results are unbound.

Request Information

Request body formats

application/json, text/json

Sample:
{
  "countries": [
    {
      "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"
        },
        {
          "rel": "sample string 1",
          "href": "sample string 2"
        }
      ]
    },
    {
      "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"
        },
        {
          "rel": "sample string 1",
          "href": "sample string 2"
        }
      ]
    },
    {
      "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"
        },
        {
          "rel": "sample string 1",
          "href": "sample string 2"
        }
      ]
    }
  ],
  "meta": {
    "dataSource": "sample string 1",
    "extractDate": "2024-03-28T11:54:12.4006311+00:00",
    "itemCount": 3,
    "returncode": "sample string 4",
    "totalCount": 5,
    "totalPages": 6,
    "pageSize": 7,
    "pageNumber": 8
  },
  "links": [
    {
      "rel": "sample string 1",
      "href": "sample string 2"
    },
    {
      "rel": "sample string 1",
      "href": "sample string 2"
    },
    {
      "rel": "sample string 1",
      "href": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<CountryCollection 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>
    <link>
      <href>sample string 2</href>
      <rel>sample string 1</rel>
    </link>
  </links>
  <meta xmlns="http://schemas.datacontract.org/2004/07/FHRS.Model.MetaLinks">
    <dataSource>sample string 1</dataSource>
    <extractDate>2024-03-28T11:54:12.4006311+00:00</extractDate>
    <itemCount>3</itemCount>
    <pageNumber>8</pageNumber>
    <pageSize>7</pageSize>
    <returncode>sample string 4</returncode>
    <totalCount>5</totalCount>
    <totalPages>6</totalPages>
  </meta>
  <countries>
    <country>
      <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>
        <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>
    <country>
      <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>
        <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>
    <country>
      <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>
        <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>
  </countries>
</CountryCollection>

application/x-www-form-urlencoded

Sample:
Currently Unsupported :(
Test API
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body