GET Country/Countries
Gets country data relevant to the Contracts Finder system.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A CountryResponse containing all the relevant country data.
CountryResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Countries |
Gets or sets list of Countries. |
Collection of Country |
None. |
Response Formats
HTTP response status code: 200
application/json, text/json
Sample:
{
"countries": [
{
"name": "England",
"code": "ENG"
},
{
"name": "Wales",
"code": "WLS"
}
]
}
application/xml, text/xml
Sample:
<CountryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IPL.ContractsFinder.WebApi.Shared.Models">
<Countries xmlns:d2p1="http://schemas.datacontract.org/2004/07/IPL.ContractsFinder.BusinessEntities">
<d2p1:Country>
<d2p1:Code>ENG</d2p1:Code>
<d2p1:Name>England</d2p1:Name>
</d2p1:Country>
<d2p1:Country>
<d2p1:Code>WLS</d2p1:Code>
<d2p1:Name>Wales</d2p1:Name>
</d2p1:Country>
</Countries>
</CountryResponse>
HTTP response status code: 403
When the user has submitted too many requests, no further requests should be made until after 5 minutes
text/plain
Sample:
Body:
<html><head><title>Forbidden - Contracts Finder</title></head><body><p><h1><strong>Request forbidden</strong></h1></p><p>The request rate limit may have been exceeded. If you believe this is an error <a href="https://www.contractsfinder.service.gov.uk/Home/Contact">contact us</a> quoting 0QrFmYQAAAABs5RRpp9L8RbtJ8k4jz8gwTE9OMjFFREdFMDIwOABiYTEyMjkxMi0zZWE0LTQ1NTQtYjNjNi1mNmRmZDU2MGY2ZDM=.</p></body></html>