Reservation Station API

<back to all web services

TestLogging

The following routes are available for this service:
GET/test/loggingSimple test method to confirm the logs are working
import 'package:servicestack/servicestack.dart';

class TestResult implements IConvertible
{
    bool? wasSuccessful;
    String? description;

    TestResult({this.wasSuccessful,this.description});
    TestResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class TestResponse implements IConvertible
{
    String? environment;
    Map<String,TestResult?>? tests;
    bool? wasSuccessful;
    String? db;
    bool? debugMode;
    bool? serverGC;

    TestResponse({this.environment,this.tests,this.wasSuccessful,this.db,this.debugMode,this.serverGC});
    TestResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        environment = json['environment'];
        tests = JsonConverters.fromJson(json['tests'],'Map<String,TestResult?>',context!);
        wasSuccessful = json['wasSuccessful'];
        db = json['db'];
        debugMode = json['debugMode'];
        serverGC = json['serverGC'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'environment': environment,
        'tests': JsonConverters.toJson(tests,'Map<String,TestResult?>',context!),
        'wasSuccessful': wasSuccessful,
        'db': db,
        'debugMode': debugMode,
        'serverGC': serverGC
    };

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

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

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

TypeContext _ctx = TypeContext(library: 'reservation.api.dev.86degrees.com', types: <String, TypeInfo> {
    'TestResult': TypeInfo(TypeOf.Class, create:() => TestResult()),
    'TestResponse': TypeInfo(TypeOf.Class, create:() => TestResponse()),
    'Map<String,TestResult?>': TypeInfo(TypeOf.Class, create:() => Map<String,TestResult?>()),
    'TestLogging': TypeInfo(TypeOf.Class, create:() => TestLogging()),
});

Dart TestLogging DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

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

GET /test/logging HTTP/1.1 
Host: reservation.api.dev.86degrees.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"environment":"String","tests":{"String":{"wasSuccessful":false,"description":"String"}},"wasSuccessful":false,"db":"String","debugMode":false,"serverGC":false}