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}
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports SDS.APIs.Legacy.EanCodeBook.ServiceInterface

Namespace Global

    Namespace SDS.APIs.Legacy.EanCodeBook.ServiceInterface

        '''<Summary>
        '''Get metering points from www.eancodeboek.nl
        '''</Summary>
        <Api(Description:="Get metering points from www.eancodeboek.nl")>
        Public Partial Class EanCodeBookRequest
            '''<Summary>
            '''Postcode, format: 1234AB
            '''</Summary>
            <ApiMember(DataType:="string", Description:="Postcode, format: 1234AB", IsRequired:=true, Name:="Postcode")>
            Public Overridable Property Postcode As String

            '''<Summary>
            '''Housenumber, format: integer number
            '''</Summary>
            <ApiMember(DataType:="integer", Description:="Housenumber, format: integer number", IsRequired:=true, Name:="HouseNumber")>
            Public Overridable Property HouseNumber As Integer

            '''<Summary>
            '''OPTIONAL: don't put data in wrapper
            '''</Summary>
            <ApiMember(DataType:="boolean", Description:="OPTIONAL: don't put data in wrapper", Name:="OnlyPayload")>
            Public Overridable Property OnlyPayload As Boolean
        End Class
    End Namespace
End Namespace

VB.NET 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