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}
namespace SDS.APIs.Legacy.EanCodeBook.ServiceInterface

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    ///<summary>
    ///Get metering points from www.eancodeboek.nl
    ///</summary>
    [<Api(Description="Get metering points from www.eancodeboek.nl")>]
    [<AllowNullLiteral>]
    type EanCodeBookRequest() = 
        ///<summary>
        ///Postcode, format: 1234AB
        ///</summary>
        [<ApiMember(DataType="string", Description="Postcode, format: 1234AB", IsRequired=true, Name="Postcode")>]
        member val Postcode:String = null with get,set

        ///<summary>
        ///Housenumber, format: integer number
        ///</summary>
        [<ApiMember(DataType="integer", Description="Housenumber, format: integer number", IsRequired=true, Name="HouseNumber")>]
        member val HouseNumber:Int32 = new Int32() with get,set

        ///<summary>
        ///OPTIONAL: don't put data in wrapper
        ///</summary>
        [<ApiMember(DataType="boolean", Description="OPTIONAL: don't put data in wrapper", Name="OnlyPayload")>]
        member val OnlyPayload:Boolean = new Boolean() with get,set

F# EanCodeBookRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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/xml