MBOnlineCreditApplicationService

<back to all web services

HeartbeatRequest

The following routes are available for this service:
GET/Heartbeat/
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class HeartbeatRequest
    {
        @DataMember
        public String Username = null;

        @DataMember
        public String Timestamp = null;

        @DataMember
        public String Token = null;
        
        public String getUsername() { return Username; }
        public HeartbeatRequest setUsername(String value) { this.Username = value; return this; }
        public String getTimestamp() { return Timestamp; }
        public HeartbeatRequest setTimestamp(String value) { this.Timestamp = value; return this; }
        public String getToken() { return Token; }
        public HeartbeatRequest setToken(String value) { this.Token = value; return this; }
    }

    @DataContract
    public static class HeartbeatRequestResponse
    {
        @DataMember
        public Integer Code = null;

        @DataMember
        public String Success = null;
        
        public Integer getCode() { return Code; }
        public HeartbeatRequestResponse setCode(Integer value) { this.Code = value; return this; }
        public String getSuccess() { return Success; }
        public HeartbeatRequestResponse setSuccess(String value) { this.Success = value; return this; }
    }

}

Java 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

{"Code":0,"Success":"String"}