Hmx Accounts

<back to all web services

GetApplication

The following routes are available for this service:
GET/api/applications/{id}Get Application by Id
import 'package:servicestack/servicestack.dart';

class ApplicationDto implements IConvertible
{
    String? id;
    String? name;
    String? token;
    String? purchaseUrl;
    bool? isActive;

    ApplicationDto({this.id,this.name,this.token,this.purchaseUrl,this.isActive});
    ApplicationDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        token = json['token'];
        purchaseUrl = json['purchaseUrl'];
        isActive = json['isActive'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'token': token,
        'purchaseUrl': purchaseUrl,
        'isActive': isActive
    };

    getTypeName() => "ApplicationDto";
    TypeContext? context = _ctx;
}

class GetApplication implements IConvertible
{
    String? id;

    GetApplication({this.id});
    GetApplication.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id
    };

    getTypeName() => "GetApplication";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'accounts.dev.healthmonix.com', types: <String, TypeInfo> {
    'ApplicationDto': TypeInfo(TypeOf.Class, create:() => ApplicationDto()),
    'GetApplication': TypeInfo(TypeOf.Class, create:() => GetApplication()),
});

Dart GetApplication 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.

GET /api/applications/{id} HTTP/1.1 
Host: accounts.dev.healthmonix.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ApplicationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hmx.Accounts.ServiceModels">
  <Id>String</Id>
  <IsActive>false</IsActive>
  <Name>String</Name>
  <PurchaseUrl>String</PurchaseUrl>
  <Token>String</Token>
</ApplicationDto>