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}
import 'package:servicestack/servicestack.dart';

/**
* Get metering points from www.eancodeboek.nl
*/
// @Api(Description="Get metering points from www.eancodeboek.nl")
class EanCodeBookRequestWithSuffix implements IConvertible
{
    /**
    * Postcode, format: 1234AB
    */
    // @ApiMember(DataType="string", Description="Postcode, format: 1234AB", IsRequired=true, Name="Postcode")
    String? Postcode;

    /**
    * Housenumber, format: integer number
    */
    // @ApiMember(DataType="integer", Description="Housenumber, format: integer number", IsRequired=true, Name="HouseNumber")
    int? HouseNumber;

    /**
    * Suffix
    */
    // @ApiMember(DataType="string", Description="Suffix", Name="Suffix")
    String? Suffix;

    /**
    * OPTIONAL: don't put data in wrapper
    */
    // @ApiMember(DataType="boolean", Description="OPTIONAL: don't put data in wrapper", Name="OnlyPayload")
    bool? OnlyPayload;

    EanCodeBookRequestWithSuffix({this.Postcode,this.HouseNumber,this.Suffix,this.OnlyPayload});
    EanCodeBookRequestWithSuffix.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Postcode = json['Postcode'];
        HouseNumber = json['HouseNumber'];
        Suffix = json['Suffix'];
        OnlyPayload = json['OnlyPayload'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Postcode': Postcode,
        'HouseNumber': HouseNumber,
        'Suffix': Suffix,
        'OnlyPayload': OnlyPayload
    };

    getTypeName() => "EanCodeBookRequestWithSuffix";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'ean.smartdatasolutions.nl', types: <String, TypeInfo> {
    'EanCodeBookRequestWithSuffix': TypeInfo(TypeOf.Class, create:() => EanCodeBookRequestWithSuffix()),
});

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