All Verbs | /files/{Path*} | ||
---|---|---|---|
All Verbs | /OldFiles |
import 'package:servicestack/servicestack.dart';
class OldFiles implements IConvertible
{
String? path;
OldFiles({this.path});
OldFiles.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
path = json['path'];
return this;
}
Map<String, dynamic> toJson() => {
'path': path
};
getTypeName() => "OldFiles";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'account.servicestack.net', types: <String, TypeInfo> {
'OldFiles': TypeInfo(TypeOf.Class, create:() => OldFiles()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /files/{Path*} HTTP/1.1
Host: account.servicestack.net
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"path":"String"}