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()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"id":"String","name":"String","token":"String","purchaseUrl":"String","isActive":false}