| 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 .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Liste:
[
{
id: 0,
iso4217: String,
iso4217num: String,
bezeichnung: String,
_erstellt: 0001-01-01,
_aenderung: 0001-01-01,
symbol: String,
prio: 0,
PrimaryKey: 0
}
]
}