Field Squared API Services

<back to all web services

GisLayers

The following routes are available for this service:
GET/{Workspace}/GisLayers
import 'package:servicestack/servicestack.dart';

class GisLayers implements IConvertible
{
    String? Workspace;
    List<String>? Layers;

    GisLayers({this.Workspace,this.Layers});
    GisLayers.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
    'GisLayers': TypeInfo(TypeOf.Class, create:() => GisLayers()),
});

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

GET /{Workspace}/GisLayers HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/jsv