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 .xml suffix or ?format=xml
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/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <TagsForRecentItemsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASH.ResourceLibrary.Interfaces.ServiceModels"> <Tags xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASH.ResourceLibrary.Interfaces.Models" i:nil="true" /> </TagsForRecentItemsResponse>