Server

<back to all web services

PurgeDatabase

Requires Authentication
The following routes are available for this service:
GET/Config/PurgeDatabase
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

// @DataContract
class PurgeDatabaseResponse implements IConvertible
{
    PurgeDatabaseResponse();
    PurgeDatabaseResponse.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "PurgeDatabaseResponse";
    TypeContext? context = _ctx;
}

// @DataContract
class PurgeDatabase implements IConvertible
{
    PurgeDatabase();
    PurgeDatabase.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "PurgeDatabase";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'inea_servdesk.eras_online.de', types: <String, TypeInfo> {
    'PurgeDatabaseResponse': TypeInfo(TypeOf.Class, create:() => PurgeDatabaseResponse()),
    'PurgeDatabase': TypeInfo(TypeOf.Class, create:() => PurgeDatabase()),
});

Dart PurgeDatabase DTOs

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

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Config/PurgeDatabase HTTP/1.1 
Host: inea-servdesk.eras-online.de 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PurgeDatabaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Config" />