| GET | /warranty/v1/promotertypes/{promoterTypeId*} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetPromoterTypes extends BaseRequest<GetPromoterTypesResponse>
{
public String promoterTypeId = null;
public String getPromoterTypeId() { return promoterTypeId; }
public GetPromoterTypes setPromoterTypeId(String value) { this.promoterTypeId = value; return this; }
}
public static class BaseRequest<TResponse> implements IRequest
{
public String sid = null;
public String app = null;
public String _os = null;
public String _appVersion = null;
public String _searchMethod = null;
public String getSid() { return sid; }
public BaseRequest<TResponse> setSid(String value) { this.sid = value; return this; }
public String getApp() { return app; }
public BaseRequest<TResponse> setApp(String value) { this.app = value; return this; }
public String getOs() { return _os; }
public BaseRequest<TResponse> setOs(String value) { this._os = value; return this; }
public String getAppVersion() { return _appVersion; }
public BaseRequest<TResponse> setAppVersion(String value) { this._appVersion = value; return this; }
public String getSearchMethod() { return _searchMethod; }
public BaseRequest<TResponse> setSearchMethod(String value) { this._searchMethod = value; return this; }
}
public static class GetPromoterTypesResponse
{
public ArrayList<PromoterType> promoterTypes = null;
public ArrayList<PromoterType> getPromoterTypes() { return promoterTypes; }
public GetPromoterTypesResponse setPromoterTypes(ArrayList<PromoterType> value) { this.promoterTypes = value; return this; }
}
public static class PromoterType
{
public String promoterTypeId = null;
public String description = null;
public String getPromoterTypeId() { return promoterTypeId; }
public PromoterType setPromoterTypeId(String value) { this.promoterTypeId = value; return this; }
public String getDescription() { return description; }
public PromoterType setDescription(String value) { this.description = 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 /warranty/v1/promotertypes/{promoterTypeId*} HTTP/1.1
Host: qp-microservices-booster.richemont.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetPromoterTypesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Sale">
<promoterTypes>
<PromoterType>
<description>String</description>
<promoterTypeId>String</promoterTypeId>
</PromoterType>
</promoterTypes>
</GetPromoterTypesResponse>