TicketUserServices

<back to all web services

SystemStatusRequest

The following routes are available for this service:
GET POST/system/SystemStatus
import 'package:servicestack/servicestack.dart';

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

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

class SystemStatusResult implements IConvertible
{
    bool? apiIsAlive;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'SystemStatusRequest': TypeInfo(TypeOf.Class, create:() => SystemStatusRequest()),
    'SystemStatusResult': TypeInfo(TypeOf.Class, create:() => SystemStatusResult()),
});

Dart SystemStatusRequest DTOs

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

HTTP + JSV

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

POST /system/SystemStatus HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	apiIsAlive: False
}