All Verbs | /current/{Key}/{TenantKey} |
---|
import 'package:servicestack/servicestack.dart';
class GetCurrentMicroAppRequest implements IHasTenantKey, IConvertible
{
String? key;
String? tenantKey;
GetCurrentMicroAppRequest({this.key,this.tenantKey});
GetCurrentMicroAppRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
key = json['key'];
tenantKey = json['tenantKey'];
return this;
}
Map<String, dynamic> toJson() => {
'key': key,
'tenantKey': tenantKey
};
getTypeName() => "GetCurrentMicroAppRequest";
TypeContext? context = _ctx;
}
class MicroApp implements IConvertible
{
int? id;
String? name;
String? key;
int? version;
bool? current;
bool? production;
// @ignore()
String? manifestUrl;
// @ignore()
String? url;
MicroApp({this.id,this.name,this.key,this.version,this.current,this.production,this.manifestUrl,this.url});
MicroApp.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
key = json['key'];
version = json['version'];
current = json['current'];
production = json['production'];
manifestUrl = json['manifestUrl'];
url = json['url'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'key': key,
'version': version,
'current': current,
'production': production,
'manifestUrl': manifestUrl,
'url': url
};
getTypeName() => "MicroApp";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'apps.harbourassist.com', types: <String, TypeInfo> {
'GetCurrentMicroAppRequest': TypeInfo(TypeOf.Class, create:() => GetCurrentMicroAppRequest()),
'MicroApp': TypeInfo(TypeOf.Class, create:() => MicroApp()),
});
Dart GetCurrentMicroAppRequest 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 /current/{Key}/{TenantKey} HTTP/1.1
Host: apps.harbourassist.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
key: String,
tenantKey: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { id: 0, name: String, key: String, version: 0, current: False, production: False, manifestUrl: String/manifest.json, url: String }