| GET | /Objekte/Guids |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class ObjektGuidInfo implements IConvertible
{
String? guid;
String? number;
ObjektGuidInfo({this.guid,this.number});
ObjektGuidInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
guid = json['guid'];
number = json['number'];
return this;
}
Map<String, dynamic> toJson() => {
'guid': guid,
'number': number
};
getTypeName() => "ObjektGuidInfo";
TypeContext? context = _ctx;
}
class GetObjektGuidsResponse implements IConvertible
{
List<ObjektGuidInfo>? objekte;
ResponseStatus? responseStatus;
GetObjektGuidsResponse({this.objekte,this.responseStatus});
GetObjektGuidsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
objekte = JsonConverters.fromJson(json['objekte'],'List<ObjektGuidInfo>',context!);
responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'objekte': JsonConverters.toJson(objekte,'List<ObjektGuidInfo>',context!),
'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
};
getTypeName() => "GetObjektGuidsResponse";
TypeContext? context = _ctx;
}
class GetObjektGuids implements IConvertible
{
GetObjektGuids();
GetObjektGuids.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "GetObjektGuids";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'heat_syke_servdesk.eras_online.de', types: <String, TypeInfo> {
'ObjektGuidInfo': TypeInfo(TypeOf.Class, create:() => ObjektGuidInfo()),
'GetObjektGuidsResponse': TypeInfo(TypeOf.Class, create:() => GetObjektGuidsResponse()),
'List<ObjektGuidInfo>': TypeInfo(TypeOf.Class, create:() => <ObjektGuidInfo>[]),
'GetObjektGuids': TypeInfo(TypeOf.Class, create:() => GetObjektGuids()),
});
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.
GET /Objekte/Guids HTTP/1.1 Host: heat-syke-servdesk.eras-online.de Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"objekte":[{"guid":"String","number":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}