POST | /RestApi/cache//clear |
---|
import 'package:servicestack/servicestack.dart';
class ClearCacheRequest implements IConvertible
{
ClearCacheRequest();
ClearCacheRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "ClearCacheRequest";
TypeContext? context = _ctx;
}
class ClearCacheResponse implements IConvertible
{
bool? Result;
String? Message;
ClearCacheResponse({this.Result,this.Message});
ClearCacheResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Result = json['Result'];
Message = json['Message'];
return this;
}
Map<String, dynamic> toJson() => {
'Result': Result,
'Message': Message
};
getTypeName() => "ClearCacheResponse";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
'ClearCacheRequest': TypeInfo(TypeOf.Class, create:() => ClearCacheRequest()),
'ClearCacheResponse': TypeInfo(TypeOf.Class, create:() => ClearCacheResponse()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /RestApi/cache//clear HTTP/1.1
Host: www.asg.com.au
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Result":false,"Message":"String"}