| POST | /address | Call to list addresses | POST request to search for addresses. Using Postcode and House Name/Number as input. |
|---|---|---|---|
| GET | /address/{Postcode} | Call to list addresses | GET request to search for addresses. Using Token, Postcode and House Name/Number as input. |
| GET | /address/{Postcode}/{HouseNo} | Call to show a specific address | GET request to search for addresses. Using Token, Postcode and House Name/Number as input. |
"use strict";
export class PostcodeLookupRequest {
/** @param {{Postcode?:string,HouseNo?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Using a Postcode to return addresses. */
Postcode;
/**
* @type {string}
* @description Optional input value to limit the return data to a specific address. */
HouseNo;
}
JavaScript PostcodeLookupRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /address HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Postcode":"String","HouseNo":"String"}