| GET, POST | /fibuscan/Onlinehandel/WaehrungsListe |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class waehrung implements IPrimaryKey, ITableBase, IConvertible
{
int? id;
String? iso4217;
String? iso4217num;
String? bezeichnung;
DateTime? _erstellt;
DateTime? _aenderung;
String? symbol;
int? prio;
// @Ignore()
int? PrimaryKey;
waehrung({this.id,this.iso4217,this.iso4217num,this.bezeichnung,this._erstellt,this._aenderung,this.symbol,this.prio,this.PrimaryKey});
waehrung.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
iso4217 = json['iso4217'];
iso4217num = json['iso4217num'];
bezeichnung = json['bezeichnung'];
_erstellt = JsonConverters.fromJson(json['_erstellt'],'DateTime',context!);
_aenderung = JsonConverters.fromJson(json['_aenderung'],'DateTime',context!);
symbol = json['symbol'];
prio = json['prio'];
PrimaryKey = json['PrimaryKey'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'iso4217': iso4217,
'iso4217num': iso4217num,
'bezeichnung': bezeichnung,
'_erstellt': JsonConverters.toJson(_erstellt,'DateTime',context!),
'_aenderung': JsonConverters.toJson(_aenderung,'DateTime',context!),
'symbol': symbol,
'prio': prio,
'PrimaryKey': PrimaryKey
};
getTypeName() => "waehrung";
TypeContext? context = _ctx;
}
class WaehrungsListeResponse implements IConvertible
{
List<waehrung>? Liste;
WaehrungsListeResponse({this.Liste});
WaehrungsListeResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Liste = JsonConverters.fromJson(json['Liste'],'List<waehrung>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Liste': JsonConverters.toJson(Liste,'List<waehrung>',context!)
};
getTypeName() => "WaehrungsListeResponse";
TypeContext? context = _ctx;
}
class WaehrungsListeRequest implements IConvertible
{
WaehrungsListeRequest();
WaehrungsListeRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "WaehrungsListeRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
'waehrung': TypeInfo(TypeOf.Class, create:() => waehrung()),
'WaehrungsListeResponse': TypeInfo(TypeOf.Class, create:() => WaehrungsListeResponse()),
'List<waehrung>': TypeInfo(TypeOf.Class, create:() => <waehrung>[]),
'WaehrungsListeRequest': TypeInfo(TypeOf.Class, create:() => WaehrungsListeRequest()),
});
Dart WaehrungsListeRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /fibuscan/Onlinehandel/WaehrungsListe HTTP/1.1
Host: ws4.fibudata.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<WaehrungsListeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<WaehrungsListeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
<Liste xmlns:d2p1="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Models">
<d2p1:waehrung>
<d2p1:PrimaryKey>0</d2p1:PrimaryKey>
<d2p1:_aenderung>0001-01-01T00:00:00</d2p1:_aenderung>
<d2p1:_erstellt>0001-01-01T00:00:00</d2p1:_erstellt>
<d2p1:bezeichnung>String</d2p1:bezeichnung>
<d2p1:id>0</d2p1:id>
<d2p1:iso4217>String</d2p1:iso4217>
<d2p1:iso4217num>String</d2p1:iso4217num>
<d2p1:prio>0</d2p1:prio>
<d2p1:symbol>String</d2p1:symbol>
</d2p1:waehrung>
</Liste>
</WaehrungsListeResponse>