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

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 EanCodeBookRequestWithSuffix
    {
        ///<summary>
        ///Postcode, format: 1234AB
        ///</summary>
        [ApiMember(DataType="string", Description="Postcode, format: 1234AB", IsRequired=true, Name="Postcode")]
        public virtual string Postcode { get; set; }

        ///<summary>
        ///Housenumber, format: integer number
        ///</summary>
        [ApiMember(DataType="integer", Description="Housenumber, format: integer number", IsRequired=true, Name="HouseNumber")]
        public virtual int HouseNumber { get; set; }

        ///<summary>
        ///Suffix
        ///</summary>
        [ApiMember(DataType="string", Description="Suffix", Name="Suffix")]
        public virtual string Suffix { get; set; }

        ///<summary>
        ///OPTIONAL: don't put data in wrapper
        ///</summary>
        [ApiMember(DataType="boolean", Description="OPTIONAL: don't put data in wrapper", Name="OnlyPayload")]
        public virtual bool OnlyPayload { get; set; }
    }

}

C# EanCodeBookRequestWithSuffix 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}/{Suffix} HTTP/1.1 
Host: ean.smartdatasolutions.nl 
Accept: application/json