| GET | /eventTypes | Get all available event types |
|---|
export class EventType
{
/** @description Booster Event Type */
// @ApiMember(Description="Booster Event Type", IsRequired=true)
public eventType: string;
/** @description Event type translation */
// @ApiMember(Description="Event type translation", IsRequired=true)
public translation: string;
public constructor(init?: Partial<EventType>) { (Object as any).assign(this, init); }
}
export class GetEventTypesResponse extends Array<EventType>
{
public constructor(init?: Partial<GetEventTypesResponse>) { super(); (Object as any).assign(this, init); }
}
export class GetEventTypes
{
public constructor(init?: Partial<GetEventTypes>) { (Object as any).assign(this, init); }
}
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" />