FIBUdataServiceStack

<back to all web services

OnlinehandelNeuerTypAnlegenRequest

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

class OnlinehandelNeuerTypAnlegenResponse implements IConvertible
{
    String? errorMSG;

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

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

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

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

class OnlinehandelNeuerTypAnlegenRequest implements IConvertible
{
    String? bezeichnung;
    int? suchfeld1;
    String? suchfeld1_text;
    int? suchfeld2;
    String? suchfeld2_text;
    int? del;
    int? parent_id;
    bool? soll_parsen;
    String? guid;

    OnlinehandelNeuerTypAnlegenRequest({this.bezeichnung,this.suchfeld1,this.suchfeld1_text,this.suchfeld2,this.suchfeld2_text,this.del,this.parent_id,this.soll_parsen,this.guid});
    OnlinehandelNeuerTypAnlegenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        bezeichnung = json['bezeichnung'];
        suchfeld1 = json['suchfeld1'];
        suchfeld1_text = json['suchfeld1_text'];
        suchfeld2 = json['suchfeld2'];
        suchfeld2_text = json['suchfeld2_text'];
        del = json['del'];
        parent_id = json['parent_id'];
        soll_parsen = json['soll_parsen'];
        guid = json['guid'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'bezeichnung': bezeichnung,
        'suchfeld1': suchfeld1,
        'suchfeld1_text': suchfeld1_text,
        'suchfeld2': suchfeld2,
        'suchfeld2_text': suchfeld2_text,
        'del': del,
        'parent_id': parent_id,
        'soll_parsen': soll_parsen,
        'guid': guid
    };

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

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

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

POST /fibuscan/Onlinehandel/NeuerTypAnlegen HTTP/1.1 
Host: ws4.fibudata.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	bezeichnung: String,
	suchfeld1: 0,
	suchfeld1_text: String,
	suchfeld2: 0,
	suchfeld2_text: String,
	del: 0,
	parent_id: 0,
	soll_parsen: False,
	guid: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	errorMSG: String
}