| GET, POST | /fibuscan/Onlinehandel/info-box-details/import |
|---|
import 'package:servicestack/servicestack.dart';
class OnlinehandelInfoBoxImportResponse implements IConvertible
{
String? error;
bool? result;
OnlinehandelInfoBoxImportResponse({this.error,this.result});
OnlinehandelInfoBoxImportResponse.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() => "OnlinehandelInfoBoxImportResponse";
TypeContext? context = _ctx;
}
class OnlinehandelInfoBoxImportRequest implements IConvertible
{
String? wert;
DateTime? vonDatum;
DateTime? bisDatum;
bool? aktiv;
bool? istWebclient2Aktiv;
bool? istWebclient3Aktiv;
bool? istWebclientAlphaAktiv;
OnlinehandelInfoBoxImportRequest({this.wert,this.vonDatum,this.bisDatum,this.aktiv,this.istWebclient2Aktiv,this.istWebclient3Aktiv,this.istWebclientAlphaAktiv});
OnlinehandelInfoBoxImportRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
wert = json['wert'];
vonDatum = JsonConverters.fromJson(json['vonDatum'],'DateTime',context!);
bisDatum = JsonConverters.fromJson(json['bisDatum'],'DateTime',context!);
aktiv = json['aktiv'];
istWebclient2Aktiv = json['istWebclient2Aktiv'];
istWebclient3Aktiv = json['istWebclient3Aktiv'];
istWebclientAlphaAktiv = json['istWebclientAlphaAktiv'];
return this;
}
Map<String, dynamic> toJson() => {
'wert': wert,
'vonDatum': JsonConverters.toJson(vonDatum,'DateTime',context!),
'bisDatum': JsonConverters.toJson(bisDatum,'DateTime',context!),
'aktiv': aktiv,
'istWebclient2Aktiv': istWebclient2Aktiv,
'istWebclient3Aktiv': istWebclient3Aktiv,
'istWebclientAlphaAktiv': istWebclientAlphaAktiv
};
getTypeName() => "OnlinehandelInfoBoxImportRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
'OnlinehandelInfoBoxImportResponse': TypeInfo(TypeOf.Class, create:() => OnlinehandelInfoBoxImportResponse()),
'OnlinehandelInfoBoxImportRequest': TypeInfo(TypeOf.Class, create:() => OnlinehandelInfoBoxImportRequest()),
});
Dart OnlinehandelInfoBoxImportRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /fibuscan/Onlinehandel/info-box-details/import HTTP/1.1
Host: ws4.fibudata.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"wert":"String","vonDatum":"\/Date(-62135596800000-0000)\/","bisDatum":"\/Date(-62135596800000-0000)\/","aktiv":false,"istWebclient2Aktiv":false,"istWebclient3Aktiv":false,"istWebclientAlphaAktiv":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"error":"String","result":false}