Trendsic Platform Service

<back to all web services

ReportManagerModulesRequest

The following routes are available for this service:
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 .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 /v1/ReportManager/api/Modules HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ArrayOfReportManagerModule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ReportManagerModule>
    <id>0</id>
    <name>String</name>
    <text>String</text>
    <updated>0001-01-01T00:00:00</updated>
  </ReportManagerModule>
</ArrayOfReportManagerModule>