| 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 .jsv suffix or ?format=jsv
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: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length [ ]