""" Options: Date: 2025-06-24 21:24:02 Version: 6.90 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: http://webservices.mbukdatabase.co.uk/AddressLookup #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: AddressRequest.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class LookupResult: addresses: Optional[List[Address]] = None errormsg: Optional[str] = None # @Route("/2.0/address/{Postcode}", "GET") # @Route("/2.0/address/{Postcode}/{HouseNo}", "GET") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class AddressRequest(IReturn[LookupResult], IHasVersion): version: int = 0 # @ApiMember(DataType="string", Description="Using a Postcode to return addresses.", IsRequired=true, Name="Postcode", ParameterType="path") postcode: Optional[str] = None """ Using a Postcode to return addresses. """ # @ApiMember(DataType="string", Description="Optional input value to limit the return data to a specific address.", Name="House Name or Number", ParameterType="path") house_no: Optional[str] = None """ Optional input value to limit the return data to a specific address. """