BWUKNewsletterSignup

<back to all web services

HeartBeatRequest

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

class HeartBeatResponse implements IConvertible
{
    String? Message;

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

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

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

    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: 'bwuknewsletterws_uat.rapp_customers.co.uk', types: <String, TypeInfo> {
    '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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /1.0/HeartBeat/ HTTP/1.1 
Host: bwuknewsletterws-uat.rapp-customers.co.uk 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Message":"String"}