GET | /tags | Use to get tags related to recently completed items |
---|
import 'package:servicestack/servicestack.dart';
class BasicResourceLibraryRequest implements IConvertible
{
int? resourceLibraryMemberId;
BasicResourceLibraryRequest({this.resourceLibraryMemberId});
BasicResourceLibraryRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
resourceLibraryMemberId = json['resourceLibraryMemberId'];
return this;
}
Map<String, dynamic> toJson() => {
'resourceLibraryMemberId': resourceLibraryMemberId
};
getTypeName() => "BasicResourceLibraryRequest";
TypeContext? context = _ctx;
}
class TagsForRecentItemsRequest extends BasicResourceLibraryRequest implements IConvertible
{
TagsForRecentItemsRequest();
TagsForRecentItemsRequest.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "TagsForRecentItemsRequest";
TypeContext? context = _ctx;
}
class Tag implements IConvertible
{
String? id;
String? title;
Tag({this.id,this.title});
Tag.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
title = json['title'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'title': title
};
getTypeName() => "Tag";
TypeContext? context = _ctx;
}
class TagsForRecentItemsResponse implements IConvertible
{
List<Tag>? tags;
TagsForRecentItemsResponse({this.tags});
TagsForRecentItemsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
tags = JsonConverters.fromJson(json['tags'],'List<Tag>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'tags': JsonConverters.toJson(tags,'List<Tag>',context!)
};
getTypeName() => "TagsForRecentItemsResponse";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'resourcelibrary.api.ashcompanies.com', types: <String, TypeInfo> {
'BasicResourceLibraryRequest': TypeInfo(TypeOf.Class, create:() => BasicResourceLibraryRequest()),
'TagsForRecentItemsRequest': TypeInfo(TypeOf.Class, create:() => TagsForRecentItemsRequest()),
'Tag': TypeInfo(TypeOf.Class, create:() => Tag()),
'TagsForRecentItemsResponse': TypeInfo(TypeOf.Class, create:() => TagsForRecentItemsResponse()),
'List<Tag>': TypeInfo(TypeOf.Class, create:() => <Tag>[]),
});
Dart TagsForRecentItemsRequest DTOs
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 /tags HTTP/1.1 Host: resourcelibrary.api.ashcompanies.com Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"tags":null}