| GET | /{Workspace}/GisToken |
|---|
import 'package:servicestack/servicestack.dart';
class GisToken implements IConvertible
{
String? Workspace;
String? Token;
String? Host;
GisToken({this.Workspace,this.Token,this.Host});
GisToken.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Workspace = json['Workspace'];
Token = json['Token'];
Host = json['Host'];
return this;
}
Map<String, dynamic> toJson() => {
'Workspace': Workspace,
'Token': Token,
'Host': Host
};
getTypeName() => "GisToken";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
'GisToken': TypeInfo(TypeOf.Class, create:() => GisToken()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /{Workspace}/GisToken HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv