/* Options: Date: 2025-06-25 05:57:16 Version: 6.90 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://webservices.mbukdatabase.co.uk/AddressLookup //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: AddressRequest.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using PostcodeLookupService.ServiceModel.Types; namespace PostcodeLookupService.ServiceModel.Types { [Route("/2.0/address/{Postcode}", "GET")] [Route("/2.0/address/{Postcode}/{HouseNo}", "GET")] public partial class AddressRequest : IReturn, IHasVersion { public virtual int Version { get; set; } /// ///Using a Postcode to return addresses. /// [ApiMember(DataType="string", Description="Using a Postcode to return addresses.", IsRequired=true, Name="Postcode", ParameterType="path")] public virtual string Postcode { get; set; } /// ///Optional input value to limit the return data to a specific address. /// [ApiMember(DataType="string", Description="Optional input value to limit the return data to a specific address.", Name="House Name or Number", ParameterType="path")] public virtual string HouseNo { get; set; } } [DataContract(Name="LookupResult", Namespace="http://schemas.datacontract.org/2004/07/PostcodeLookupService")] public partial class LookupResult { public LookupResult() { Addresses = new Address[]{}; } [DataMember] public virtual Address[] Addresses { get; set; } [DataMember] public virtual string errormsg { get; set; } } }