| GET | /eventTypes | Get all available event types |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetEventTypes
{
}
public static class GetEventTypesResponse extends ArrayList<EventType>
{
}
public static class EventType
{
/**
* Booster Event Type
*/
@ApiMember(Description="Booster Event Type", IsRequired=true)
public String eventType = null;
/**
* Event type translation
*/
@ApiMember(Description="Event type translation", IsRequired=true)
public String translation = null;
public String getEventType() { return eventType; }
public EventType setEventType(String value) { this.eventType = value; return this; }
public String getTranslation() { return translation; }
public EventType 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 /eventTypes HTTP/1.1 Host: dev-api-booster.richemont.com Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ArrayOfEventType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.CRM.ServiceModel" />