| GET | /genders/{brand}/{posCode} | Get genders |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetGenders
{
/**
* Brand
*/
@ApiMember(Description="Brand", IsRequired=true)
public String brand = null;
/**
* POS Legacy
*/
@ApiMember(Description="POS Legacy", IsRequired=true)
public String posCode = null;
public String getBrand() { return brand; }
public GetGenders setBrand(String value) { this.brand = value; return this; }
public String getPosCode() { return posCode; }
public GetGenders setPosCode(String value) { this.posCode = value; return this; }
}
public static class GetGendersResponse extends ArrayList<Gender>
{
}
public static class Gender
{
/**
* Gender Id
*/
@ApiMember(Description="Gender Id", IsRequired=true)
public String gender = null;
/**
* Gender description
*/
@ApiMember(Description="Gender description", IsRequired=true)
public String genderDs = null;
public String getGender() { return gender; }
public Gender setGender(String value) { this.gender = value; return this; }
public String getGenderDs() { return genderDs; }
public Gender setGenderDs(String value) { this.genderDs = 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 /genders/{brand}/{posCode} HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ArrayOfGender xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.CRM.ServiceModel" />