DELETE | /api/applications/{id} | Delete an Application |
---|
import 'package:servicestack/servicestack.dart';
class DeleteApplicationResponse implements IConvertible
{
String? message;
HttpStatusCode? status;
DeleteApplicationResponse({this.message,this.status});
DeleteApplicationResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
message = json['message'];
status = JsonConverters.fromJson(json['status'],'HttpStatusCode',context!);
return this;
}
Map<String, dynamic> toJson() => {
'message': message,
'status': JsonConverters.toJson(status,'HttpStatusCode',context!)
};
getTypeName() => "DeleteApplicationResponse";
TypeContext? context = _ctx;
}
class DeleteApplication implements IConvertible
{
String? id;
DeleteApplication({this.id});
DeleteApplication.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id
};
getTypeName() => "DeleteApplication";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'accounts.dev.healthmonix.com', types: <String, TypeInfo> {
'DeleteApplicationResponse': TypeInfo(TypeOf.Class, create:() => DeleteApplicationResponse()),
'HttpStatusCode': TypeInfo(TypeOf.Class, create:() => HttpStatusCode()),
'DeleteApplication': TypeInfo(TypeOf.Class, create:() => DeleteApplication()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /api/applications/{id} HTTP/1.1 Host: accounts.dev.healthmonix.com Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"message":"String","status":"Continue"}