INTERNAL-Authorization

<back to all web services

WarmupRequest

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

class Initialization implements IConvertible
{
    String? name;
    int? duration;

    Initialization({this.name,this.duration});
    Initialization.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class WarmupResponse implements IConvertible
{
    List<Initialization>? dependencies;

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

    fromMap(Map<String, dynamic> json) {
        dependencies = JsonConverters.fromJson(json['dependencies'],'List<Initialization>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'dependencies': JsonConverters.toJson(dependencies,'List<Initialization>',context!)
    };

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

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

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

TypeContext _ctx = TypeContext(library: 'nkapi_sgepz3_auth.azurewebsites.net', types: <String, TypeInfo> {
    'Initialization': TypeInfo(TypeOf.Class, create:() => Initialization()),
    'WarmupResponse': TypeInfo(TypeOf.Class, create:() => WarmupResponse()),
    'List<Initialization>': TypeInfo(TypeOf.Class, create:() => <Initialization>[]),
    'WarmupRequest': TypeInfo(TypeOf.Class, create:() => WarmupRequest()),
});

Dart WarmupRequest 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 /warmup HTTP/1.1 
Host: nkapi-sgepz3-auth.azurewebsites.net 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"dependencies":[{}]}