DELETE | /RestApi/comments-api/comments/{key} |
---|
import 'package:servicestack/servicestack.dart';
class CommentDeleteRequest implements IConvertible
{
String? Key;
CommentDeleteRequest({this.Key});
CommentDeleteRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Key = json['Key'];
return this;
}
Map<String, dynamic> toJson() => {
'Key': Key
};
getTypeName() => "CommentDeleteRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
'CommentDeleteRequest': TypeInfo(TypeOf.Class, create:() => CommentDeleteRequest()),
});
Dart CommentDeleteRequest DTOs
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.
DELETE /RestApi/comments-api/comments/{key} HTTP/1.1 Host: www.asg.com.au Accept: text/csv