PUT | /api/tiles/{ID}/changeorder/{To} |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class BoolResponse implements IConvertible
{
bool? Value;
BoolResponse({this.Value});
BoolResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Value = json['Value'];
return this;
}
Map<String, dynamic> toJson() => {
'Value': Value
};
getTypeName() => "BoolResponse";
TypeContext? context = _ctx;
}
class ChangeTileOrder implements IConvertible
{
String? ID;
int? To;
ChangeTileOrder({this.ID,this.To});
ChangeTileOrder.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ID = json['ID'];
To = json['To'];
return this;
}
Map<String, dynamic> toJson() => {
'ID': ID,
'To': To
};
getTypeName() => "ChangeTileOrder";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'doapigw.baasbv.nl', types: <String, TypeInfo> {
'BoolResponse': TypeInfo(TypeOf.Class, create:() => BoolResponse()),
'ChangeTileOrder': TypeInfo(TypeOf.Class, create:() => ChangeTileOrder()),
});
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.
PUT /api/tiles/{ID}/changeorder/{To} HTTP/1.1
Host: doapigw.baasbv.nl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
To: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Value: False }