GET | /personalTitles | Get Personal Titles |
---|
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 GetPersonalTitles
'''<Summary>
'''Country Id
'''</Summary>
<ApiMember(Description:="Country Id", IsRequired:=true)>
Public Overridable Property countryId As String
End Class
Public Partial Class GetPersonalTitlesResponse
Inherits List(Of PersonalTitle)
End Class
Public Partial Class PersonalTitle
Public Sub New()
gender = New List(Of String)
End Sub
'''<Summary>
'''Title
'''</Summary>
<ApiMember(Description:="Title", IsRequired:=true)>
Public Overridable Property title As String
'''<Summary>
'''Gender description(s)
'''</Summary>
<ApiMember(Description:="Gender description(s)", IsRequired:=true)>
Public Overridable Property gender As List(Of String)
'''<Summary>
'''Title translation
'''</Summary>
<ApiMember(Description:="Title translation", IsRequired:=true)>
Public Overridable Property translation As String
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 /personalTitles HTTP/1.1 Host: dev-api-booster.richemont.com Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ArrayOfPersonalTitle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.CRM.ServiceModel" />