| GET | /addressTypes | Get all available address types |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.CRM.ServiceModel
Namespace Global
Namespace Richemont.Booster2.PublicApi.CRM.ServiceModel
Public Partial Class AddressType
'''<Summary>
'''Booster Address Type
'''</Summary>
<ApiMember(Description:="Booster Address Type", IsRequired:=true)>
Public Overridable Property addressType As String
'''<Summary>
'''Address type description translation
'''</Summary>
<ApiMember(Description:="Address type description translation", IsRequired:=true)>
Public Overridable Property translation As String
End Class
Public Partial Class GetAddressTypes
End Class
Public Partial Class GetAddressTypesResponse
Inherits List(Of AddressType)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /addressTypes HTTP/1.1 Host: dev-api-booster.richemont.com Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ArrayOfAddressType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.CRM.ServiceModel" />