POST api/UKpostalCodeSearch
Request Information
URI Parameters
None.
Body Parameters
Jsonparams| Name | Description | Type | Additional information |
|---|---|---|---|
| jsonstring | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"jsonstring": "sample string 1"
}
application/xml, text/xml
Sample:
<Jsonparams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EmaalWebAPI.Models"> <jsonstring>sample string 1</jsonstring> </Jsonparams>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UKpostalCodeResult| Name | Description | Type | Additional information |
|---|---|---|---|
| street | string |
None. |
|
| address2 | string |
None. |
|
| town | string |
None. |
|
| county | string |
None. |
|
| postalcode | string |
None. |
|
| addresslist | Collection of UKaddress |
None. |
Response Formats
application/json, text/json
Sample:
{
"addresslist": [
{
"address": "sample string 1"
},
{
"address": "sample string 1"
}
],
"street": "sample string 1",
"address2": "sample string 2",
"town": "sample string 3",
"county": "sample string 4",
"postalcode": "sample string 5"
}
application/xml, text/xml
Sample:
<UKpostalCodeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EmaalWebAPI.Models">
<address2>sample string 2</address2>
<addresslist>
<UKaddress>
<address>sample string 1</address>
</UKaddress>
<UKaddress>
<address>sample string 1</address>
</UKaddress>
</addresslist>
<county>sample string 4</county>
<postalcode>sample string 5</postalcode>
<street>sample string 1</street>
<town>sample string 3</town>
</UKpostalCodeResult>