GalaxyMobile Client API

<back to all web services

IsAvailable

The following routes are available for this service:
All Verbs/test/availableTests that the server is available and responsive.
import 'package:servicestack/servicestack.dart';

class IsAvailableResponse implements IConvertible
{
    bool? Available;

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

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

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

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

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

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

TypeContext _ctx = TypeContext(library: 'galaxymobile.api.client.prod.86degrees.com', types: <String, TypeInfo> {
    'IsAvailableResponse': TypeInfo(TypeOf.Class, create:() => IsAvailableResponse()),
    'IsAvailable': TypeInfo(TypeOf.Class, create:() => IsAvailable()),
});

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

POST /test/available HTTP/1.1 
Host: galaxymobile.api.client.prod.86degrees.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

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

{"Available":false}