SDS.APIs.Legacy.EanCodeBook

<back to all web services

EanCodeBookRequestWithSuffix

Get metering points from www.eancodeboek.nl

The following routes are available for this service:
GET/eancodebook/{Postcode}/{HouseNumber}/{Suffix}
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 EanCodeBookRequestWithSuffix() = 
        ///<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>
        ///Suffix
        ///</summary>
        [<ApiMember(DataType="string", Description="Suffix", Name="Suffix")>]
        member val Suffix:String = null 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# EanCodeBookRequestWithSuffix DTOs

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

HTTP + CSV

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

GET /eancodebook/{Postcode}/{HouseNumber}/{Suffix} HTTP/1.1 
Host: ean.smartdatasolutions.nl 
Accept: text/csv