| GET,OPTIONS | /v1/ReportManager/api/Modules |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
abstract class ReportManagerRequest<T>
{
ReportManagerRequest();
ReportManagerRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "ReportManagerRequest<$T>";
TypeContext? context = _ctx;
}
class ReportManagerModule implements IReportManagerDocument, IConvertible
{
int? id;
String? name;
String? text;
DateTime? updated;
ReportManagerModule({this.id,this.name,this.text,this.updated});
ReportManagerModule.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
text = json['text'];
updated = JsonConverters.fromJson(json['updated'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'text': text,
'updated': JsonConverters.toJson(updated,'DateTime',context!)
};
getTypeName() => "ReportManagerModule";
TypeContext? context = _ctx;
}
class ReportManagerModulesRequest extends ReportManagerRequest<ReportManagerModule> implements IConvertible
{
ReportManagerModulesRequest();
ReportManagerModulesRequest.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() => "ReportManagerModulesRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'ReportManagerRequest<T>': TypeInfo(TypeOf.GenericDef,create:() => ReportManagerRequest()),
'ReportManagerModule': TypeInfo(TypeOf.Class, create:() => ReportManagerModule()),
'ReportManagerModulesRequest': TypeInfo(TypeOf.Class, create:() => ReportManagerModulesRequest()),
});
Dart ReportManagerModulesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/ReportManager/api/Modules HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
[{"id":0,"name":"String","text":"String","updated":"0001-01-01T00:00:00.0000000"}]