GET | /webhook/eventtypes | Get all Webhook event types | Get all WebhookEventTypes |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ListWebhookEventTypesRequest
{
}
public static class WebhookEventTypesResponse
{
public IList<WebhookEventTypeDto> EventTypes = null;
public IList<WebhookEventTypeDto> getEventTypes() { return EventTypes; }
public WebhookEventTypesResponse setEventTypes(IList<WebhookEventTypeDto> value) { this.EventTypes = value; return this; }
}
public static class WebhookEventTypeDto
{
public String Name = null;
public String Description = null;
public Integer Id = null;
public String Value = null;
public String getName() { return Name; }
public WebhookEventTypeDto setName(String value) { this.Name = value; return this; }
public String getDescription() { return Description; }
public WebhookEventTypeDto setDescription(String value) { this.Description = value; return this; }
public Integer getId() { return Id; }
public WebhookEventTypeDto setId(Integer value) { this.Id = value; return this; }
public String getValue() { return Value; }
public WebhookEventTypeDto setValue(String value) { this.Value = value; return this; }
}
}
Java ListWebhookEventTypesRequest DTOs
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 /webhook/eventtypes HTTP/1.1 Host: api.bokamera.se Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <WebhookEventTypesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos"> <EventTypes i:nil="true" /> </WebhookEventTypesResponse>