SDS.APIs.Legacy.EanCodeBook

<back to all web services

EanCodeBookRequest

Get metering points from www.eancodeboek.nl

The following routes are available for this service:
GET/eancodebook/{Postcode}/{HouseNumber}

/** @description Get metering points from www.eancodeboek.nl */
// @Api(Description="Get metering points from www.eancodeboek.nl")
export class EanCodeBookRequest
{
    /** @description Postcode, format: 1234AB */
    // @ApiMember(DataType="string", Description="Postcode, format: 1234AB", IsRequired=true, Name="Postcode")
    public Postcode: string;

    /** @description Housenumber, format: integer number */
    // @ApiMember(DataType="integer", Description="Housenumber, format: integer number", IsRequired=true, Name="HouseNumber")
    public HouseNumber: number;

    /** @description OPTIONAL: don't put data in wrapper */
    // @ApiMember(DataType="boolean", Description="OPTIONAL: don't put data in wrapper", Name="OnlyPayload")
    public OnlyPayload: boolean;

    public constructor(init?: Partial<EanCodeBookRequest>) { (Object as any).assign(this, init); }
}

TypeScript EanCodeBookRequest 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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /eancodebook/{Postcode}/{HouseNumber} HTTP/1.1 
Host: ean.smartdatasolutions.nl 
Accept: application/json