GET | /personalTitles | Get Personal Titles |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetPersonalTitles
{
/**
* Country Id
*/
@ApiMember(Description="Country Id", IsRequired=true)
public String countryId = null;
public String getCountryId() { return countryId; }
public GetPersonalTitles setCountryId(String value) { this.countryId = value; return this; }
}
public static class GetPersonalTitlesResponse extends ArrayList<PersonalTitle>
{
}
public static class PersonalTitle
{
/**
* Title
*/
@ApiMember(Description="Title", IsRequired=true)
public String title = null;
/**
* Gender description(s)
*/
@ApiMember(Description="Gender description(s)", IsRequired=true)
public ArrayList<String> gender = null;
/**
* Title translation
*/
@ApiMember(Description="Title translation", IsRequired=true)
public String translation = null;
public String getTitle() { return title; }
public PersonalTitle setTitle(String value) { this.title = value; return this; }
public ArrayList<String> getGender() { return gender; }
public PersonalTitle setGender(ArrayList<String> value) { this.gender = value; return this; }
public String getTranslation() { return translation; }
public PersonalTitle setTranslation(String value) { this.translation = value; return this; }
}
}
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" />