Server

<back to all web services

EnableMaintenance

Requires Authentication
The following routes are available for this service:
POST/Config/EnableMaintenance
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class EnableMaintenanceResponse implements IConvertible
{
    ResponseStatus? responseStatus;

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

    fromMap(Map<String, dynamic> json) {
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
    };

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

// @DataContract
class EnableMaintenance implements IConvertible
{
    EnableMaintenance();
    EnableMaintenance.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "EnableMaintenance";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'plasa_servdesk.eras_online.de', types: <String, TypeInfo> {
    'EnableMaintenanceResponse': TypeInfo(TypeOf.Class, create:() => EnableMaintenanceResponse()),
    'EnableMaintenance': TypeInfo(TypeOf.Class, create:() => EnableMaintenance()),
});

Dart EnableMaintenance 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.

POST /Config/EnableMaintenance HTTP/1.1 
Host: plasa-servdesk.eras-online.de 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}