BokaMera.API.Host

<back to all web services

ListWebhookEventTypesRequest

The following routes are available for this service:
GET/webhook/eventtypesGet all Webhook event typesGet 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 .other suffix or ?format=other

HTTP + OTHER

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: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{}