| All Verbs | /test/available | Tests 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()),
});
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
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: application/json
Content-Type: application/json
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Available":false}