/* Options:
Date: 2025-06-25 00:08:50
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: PostcodeLookupRequest.*
//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
{
///
///This RESTful API returns UK Address data in both POST and GET. Input=Postcode(Mandatory), HouseNameorNumber=(Optional). You must provide valid authentication to make a request.
///
[Route("/address", "POST")]
[Route("/address/{Postcode}", "GET")]
[Route("/address/{Postcode}/{HouseNo}", "GET")]
[Api(Description="This RESTful API returns UK Address data in both POST and GET. Input=Postcode(Mandatory), HouseNameorNumber=(Optional). You must provide valid authentication to make a request.")]
[ApiResponse(Description="Bad Request: Try formatting the request differently. See the /swagger-ui/ documentation for more details", StatusCode=400)]
[ApiResponse(Description="Something went wrong here. Please contact your administrator or servicedesk@uk.rapp.com for more details.", StatusCode=500)]
[ApiResponse(Description="Request Accepted", StatusCode=202)]
[ApiResponse(Description="No content returned", StatusCode=204)]
public partial class PostcodeLookupRequest
{
///
///Using a Postcode to return addresses.
///
[ApiMember(DataType="string", Description="Using a Postcode to return addresses.", IsRequired=true, Name="Postcode")]
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")]
public virtual string HouseNo { get; set; }
}
}