| POST | /{Workspace}/EsriImport |
|---|
import 'package:servicestack/servicestack.dart';
/**
* Bulk import a set of assets from an ESRI shape file..
*/
class EsriImport implements IConvertible
{
String? Workspace;
String? Id;
String? Type;
String? Parent;
Map<String,String?>? Mappings;
EsriImport({this.Workspace,this.Id,this.Type,this.Parent,this.Mappings});
EsriImport.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Workspace = json['Workspace'];
Id = json['Id'];
Type = json['Type'];
Parent = json['Parent'];
Mappings = JsonConverters.toStringMap(json['Mappings']);
return this;
}
Map<String, dynamic> toJson() => {
'Workspace': Workspace,
'Id': Id,
'Type': Type,
'Parent': Parent,
'Mappings': Mappings
};
getTypeName() => "EsriImport";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
'EsriImport': TypeInfo(TypeOf.Class, create:() => EsriImport()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/EsriImport HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Workspace":"String","Id":"String","Type":"String","Parent":"String","Mappings":{"String":"String"}}