BokaMera.API.Host

<back to all web services

WebhookSettingsRequest

Requires Authentication
The following routes are available for this service:
GET/webhook/settingsGet webhook feature settings.Get webhook feature settings.
import 'package:servicestack/servicestack.dart';

class WebhookSettingsResponse implements IConvertible
{
    bool? Enabled;
    String? Message;
    String? CompanyId;

    WebhookSettingsResponse({this.Enabled,this.Message,this.CompanyId});
    WebhookSettingsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Enabled = json['Enabled'];
        Message = json['Message'];
        CompanyId = json['CompanyId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Enabled': Enabled,
        'Message': Message,
        'CompanyId': CompanyId
    };

    getTypeName() => "WebhookSettingsResponse";
    TypeContext? context = _ctx;
}

class WebhookSettingsRequest implements ICompany, IConvertible
{
    /**
    * The company id, if empty will use the company id for the user you are logged in with.
    */
    // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.", IsRequired=true, ParameterType="query")
    String? CompanyId;

    WebhookSettingsRequest({this.CompanyId});
    WebhookSettingsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        CompanyId = json['CompanyId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'CompanyId': CompanyId
    };

    getTypeName() => "WebhookSettingsRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: <String, TypeInfo> {
    'WebhookSettingsResponse': TypeInfo(TypeOf.Class, create:() => WebhookSettingsResponse()),
    'WebhookSettingsRequest': TypeInfo(TypeOf.Class, create:() => WebhookSettingsRequest()),
});

Dart WebhookSettingsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /webhook/settings HTTP/1.1 
Host: api.bokamera.se 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Enabled":false,"Message":"String"}