import 'package:servicestack/servicestack.dart';
class AliveResponse implements IConvertible
{
String? Antwort;
AliveResponse({this.Antwort});
AliveResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Antwort = json['Antwort'];
return this;
}
Map<String, dynamic> toJson() => {
'Antwort': Antwort
};
getTypeName() => "AliveResponse";
TypeContext? context = _ctx;
}
class Alive implements IConvertible
{
String? Anfrage;
String? CallingUser;
String? CallingHost;
String? CallingOS;
String? LocalIP;
Alive({this.Anfrage,this.CallingUser,this.CallingHost,this.CallingOS,this.LocalIP});
Alive.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Anfrage = json['Anfrage'];
CallingUser = json['CallingUser'];
CallingHost = json['CallingHost'];
CallingOS = json['CallingOS'];
LocalIP = json['LocalIP'];
return this;
}
Map<String, dynamic> toJson() => {
'Anfrage': Anfrage,
'CallingUser': CallingUser,
'CallingHost': CallingHost,
'CallingOS': CallingOS,
'LocalIP': LocalIP
};
getTypeName() => "Alive";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: '52.142.207.43', types: <String, TypeInfo> {
'AliveResponse': TypeInfo(TypeOf.Class, create:() => AliveResponse()),
'Alive': TypeInfo(TypeOf.Class, create:() => Alive()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsonl/reply/Alive HTTP/1.1
Host: 52.142.207.43
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Anfrage":"String","CallingUser":"String","CallingHost":"String","CallingOS":"String","LocalIP":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Antwort":"String"}