| GET | /{Workspace}/MessageApp |
|---|
import 'package:servicestack/servicestack.dart';
class MessageApp implements IConvertible
{
String? ObjectId;
String? Workspace;
String? Name;
String? PublicKey;
MessageApp({this.ObjectId,this.Workspace,this.Name,this.PublicKey});
MessageApp.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ObjectId = json['ObjectId'];
Workspace = json['Workspace'];
Name = json['Name'];
PublicKey = json['PublicKey'];
return this;
}
Map<String, dynamic> toJson() => {
'ObjectId': ObjectId,
'Workspace': Workspace,
'Name': Name,
'PublicKey': PublicKey
};
getTypeName() => "MessageApp";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
'MessageApp': TypeInfo(TypeOf.Class, create:() => MessageApp()),
});
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.
GET /{Workspace}/MessageApp HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/xml