| POST | /{Workspace}/GpxImport |
|---|
import 'package:servicestack/servicestack.dart';
/**
* Bulk import a set of assets from a GPX file..
*/
class GpxImport implements IConvertible
{
String? Workspace;
String? Id;
String? Type;
String? Parent;
Map<String,String?>? Mappings;
GpxImport({this.Workspace,this.Id,this.Type,this.Parent,this.Mappings});
GpxImport.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() => "GpxImport";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
'GpxImport': TypeInfo(TypeOf.Class, create:() => GpxImport()),
});
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.
POST /{Workspace}/GpxImport HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Workspace: String,
Id: String,
Type: String,
Parent: String,
Mappings:
{
String: String
}
}