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}
import Foundation
import ServiceStack

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

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

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

    required public init(){}
}


Swift 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