| GET, POST | /fibuscan/Onlinehandel/getFehlerLog |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class fehler_log implements IPrimaryKey, IMandnr, ITableBase, IConvertible
{
int? id;
int? mandant;
int? nutzerid;
String? stufe;
String? modul;
String? funktion;
String? meldung;
DateTime? _erstellt;
DateTime? _aenderung;
// @Ignore()
int? PrimaryKey;
fehler_log({this.id,this.mandant,this.nutzerid,this.stufe,this.modul,this.funktion,this.meldung,this._erstellt,this._aenderung,this.PrimaryKey});
fehler_log.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
mandant = json['mandant'];
nutzerid = json['nutzerid'];
stufe = json['stufe'];
modul = json['modul'];
funktion = json['funktion'];
meldung = json['meldung'];
_erstellt = JsonConverters.fromJson(json['_erstellt'],'DateTime',context!);
_aenderung = JsonConverters.fromJson(json['_aenderung'],'DateTime',context!);
PrimaryKey = json['PrimaryKey'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'mandant': mandant,
'nutzerid': nutzerid,
'stufe': stufe,
'modul': modul,
'funktion': funktion,
'meldung': meldung,
'_erstellt': JsonConverters.toJson(_erstellt,'DateTime',context!),
'_aenderung': JsonConverters.toJson(_aenderung,'DateTime',context!),
'PrimaryKey': PrimaryKey
};
getTypeName() => "fehler_log";
TypeContext? context = _ctx;
}
class FehlerLogResponse implements IConvertible
{
List<fehler_log>? FehlerLogListe;
FehlerLogResponse({this.FehlerLogListe});
FehlerLogResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
FehlerLogListe = JsonConverters.fromJson(json['FehlerLogListe'],'List<fehler_log>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'FehlerLogListe': JsonConverters.toJson(FehlerLogListe,'List<fehler_log>',context!)
};
getTypeName() => "FehlerLogResponse";
TypeContext? context = _ctx;
}
class FehlerLogRequest implements IConvertible
{
FehlerLogRequest();
FehlerLogRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "FehlerLogRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
'fehler_log': TypeInfo(TypeOf.Class, create:() => fehler_log()),
'FehlerLogResponse': TypeInfo(TypeOf.Class, create:() => FehlerLogResponse()),
'List<fehler_log>': TypeInfo(TypeOf.Class, create:() => <fehler_log>[]),
'FehlerLogRequest': TypeInfo(TypeOf.Class, create:() => FehlerLogRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /fibuscan/Onlinehandel/getFehlerLog HTTP/1.1
Host: ws4.fibudata.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"FehlerLogListe":[{"id":0,"mandant":0,"nutzerid":0,"stufe":"String","modul":"String","funktion":"String","meldung":"String","_erstellt":"\/Date(-62135596800000-0000)\/","_aenderung":"\/Date(-62135596800000-0000)\/","PrimaryKey":0}]}