MicroApp API

<back to all web services

GetCurrentMicroAppRequest

The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<GetCurrentMicroAppRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HarbourAssist.Api.MicroApp.Dtos.Requests">
  <Key>String</Key>
  <TenantKey>String</TenantKey>
</GetCurrentMicroAppRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<MicroApp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HarbourAssist.Api.MicroApp.Domain">
  <Current>false</Current>
  <Id>0</Id>
  <Key>String</Key>
  <Name>String</Name>
  <Production>false</Production>
  <Url>String</Url>
  <Version>0</Version>
</MicroApp>