Trendsic Platform Service

<back to all web services

ReportManagerObjectsRequest

The following routes are available for this service:
GET,OPTIONS/v1/ReportManager/api/Objects
"use strict";
/** @typedef T {any} */
export class ReportManagerRequest {
    constructor(init) { Object.assign(this, init) }
}
export class ReportManagerObjectData {
    /** @param {{id?:string,name?:string,filter?:boolean,edit?:boolean,type?:string,ref?:string,key?:boolean,show?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {string} */
    name;
    /** @type {boolean} */
    filter;
    /** @type {boolean} */
    edit;
    /** @type {string} */
    type;
    /** @type {string} */
    ref;
    /** @type {boolean} */
    key;
    /** @type {boolean} */
    show;
}
export class ReportManagerObjectRef {
    /** @param {{id?:number,target?:string,source?:string,name?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    id;
    /** @type {string} */
    target;
    /** @type {string} */
    source;
    /** @type {string} */
    name;
}
export class ReportManagerObject {
    /** @param {{id?:string,name?:string,data?:ReportManagerObjectData[],refs?:ReportManagerObjectRef[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {string} */
    name;
    /** @type {ReportManagerObjectData[]} */
    data = [];
    /** @type {ReportManagerObjectRef[]} */
    refs = [];
}
export class ReportManagerObjectsRequest extends ReportManagerRequest {
    constructor(init) { super(init); Object.assign(this, init) }
}

JavaScript ReportManagerObjectsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/ReportManager/api/Objects HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

[
	{
		id: String,
		name: String,
		data: 
		[
			{
				id: String,
				name: String,
				filter: False,
				edit: False,
				type: String,
				ref: String,
				key: False,
				show: False
			}
		],
		refs: 
		[
			{
				id: 0,
				target: String,
				source: String,
				name: String
			}
		]
	}
]