FIBUdataServiceStack

<back to all web services

OnlinehandelInfoBoxAktivRequest

The following routes are available for this service:
GET, POST/fibuscan/Onlinehandel/infobox/aktiv
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class OnlinehandelInfoBoxAktivResponse implements IConvertible
{
    String? error;
    bool? result;

    OnlinehandelInfoBoxAktivResponse({this.error,this.result});
    OnlinehandelInfoBoxAktivResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'error': error,
        'result': result
    };

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

class OnlinehandelInfoBoxAktivRequest implements IConvertible
{
    bool? aktiv;

    OnlinehandelInfoBoxAktivRequest({this.aktiv});
    OnlinehandelInfoBoxAktivRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
    'OnlinehandelInfoBoxAktivResponse': TypeInfo(TypeOf.Class, create:() => OnlinehandelInfoBoxAktivResponse()),
    'OnlinehandelInfoBoxAktivRequest': TypeInfo(TypeOf.Class, create:() => OnlinehandelInfoBoxAktivRequest()),
});

Dart OnlinehandelInfoBoxAktivRequest 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.

POST /fibuscan/Onlinehandel/infobox/aktiv HTTP/1.1 
Host: ws4.fibudata.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<OnlinehandelInfoBoxAktivRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
  <aktiv>false</aktiv>
</OnlinehandelInfoBoxAktivRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<OnlinehandelInfoBoxAktivResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
  <error>String</error>
  <result>false</result>
</OnlinehandelInfoBoxAktivResponse>