Test

<back to all web services

RootPathRoutes

import 'package:servicestack/servicestack.dart';

class RootPathRoutes implements IConvertible
{
    String? path;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: <String, TypeInfo> {
    'RootPathRoutes': TypeInfo(TypeOf.Class, create:() => RootPathRoutes()),
});

Dart RootPathRoutes DTOs

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

HTTP + JSV

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

POST /jsv/oneway/RootPathRoutes HTTP/1.1 
Host: test.servicestack.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	path: String
}