MBFSPreferences

<back to all web services

HeartbeatRequest

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

class Response implements IConvertible
{
    String? Code;
    String? Message;

    Response({this.Code,this.Message});
    Response.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class HeartbeatResponse implements IConvertible
{
    Response? ResponseStatus;

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

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

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

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

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

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

TypeContext _ctx = TypeContext(library: 'webservices.mbukdatabase.co.uk', types: <String, TypeInfo> {
    'Response': TypeInfo(TypeOf.Class, create:() => Response()),
    'HeartbeatResponse': TypeInfo(TypeOf.Class, create:() => HeartbeatResponse()),
    'HeartbeatRequest': TypeInfo(TypeOf.Class, create:() => HeartbeatRequest()),
});

Dart HeartbeatRequest 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 /Heartbeat/ HTTP/1.1 
Host: webservices.mbukdatabase.co.uk 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"Code":"String","Message":"String"}}