<back to all web services

DeleteService

The following routes are available for this service:
DELETE/RestApi/apiservice/delete/{Route}/{UrlName}
import 'package:servicestack/servicestack.dart';

class DeleteService implements IConvertible
{
    String? UrlName;
    String? Route;

    DeleteService({this.UrlName,this.Route});
    DeleteService.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        UrlName = json['UrlName'];
        Route = json['Route'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'UrlName': UrlName,
        'Route': Route
    };

    getTypeName() => "DeleteService";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
    'DeleteService': TypeInfo(TypeOf.Class, create:() => DeleteService()),
});

Dart DeleteService 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 /RestApi/apiservice/delete/{Route}/{UrlName} HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsv