Hmx Accounts

<back to all web services

DeleteApplication

The following routes are available for this service:
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()),
});

Dart DeleteApplication DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	message: String,
	status: Continue
}