Trendsic Platform Service

<back to all web services

RfpDiffReportRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/Rfp/DiffReport
"use strict";
export class CountItem {
    /** @param {{Key?:string,Label?:string,Count?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Key;
    /** @type {string} */
    Label;
    /** @type {number} */
    Count;
}
export class DiffReport {
    /** @param {{ApprovalCount?:number,TasksAdded?:CountItem[],TasksRemoved?:CountItem[],PositionsAdded?:CountItem[],PositionsRemoved?:CountItem[],EquipmentAdded?:CountItem[],EquipmentRemoved?:CountItem[],MaterialsAdded?:CountItem[],MaterialsRemoved?:CountItem[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ApprovalCount;
    /** @type {CountItem[]} */
    TasksAdded = [];
    /** @type {CountItem[]} */
    TasksRemoved = [];
    /** @type {CountItem[]} */
    PositionsAdded = [];
    /** @type {CountItem[]} */
    PositionsRemoved = [];
    /** @type {CountItem[]} */
    EquipmentAdded = [];
    /** @type {CountItem[]} */
    EquipmentRemoved = [];
    /** @type {CountItem[]} */
    MaterialsAdded = [];
    /** @type {CountItem[]} */
    MaterialsRemoved = [];
}
export class RfpDiffReportResponse {
    /** @param {{ResponseStatus?:ResponseStatus,Report?:DiffReport}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {DiffReport} */
    Report;
}
export class RfpDiffReportRequest {
    constructor(init) { Object.assign(this, init) }
}

JavaScript RfpDiffReportRequest 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/Rfp/DiffReport HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Report: 
	{
		ApprovalCount: 0,
		TasksAdded: 
		[
			{
				Key: String,
				Label: String,
				Count: 0
			}
		],
		TasksRemoved: 
		[
			{
				Key: String,
				Label: String,
				Count: 0
			}
		],
		PositionsAdded: 
		[
			{
				Key: String,
				Label: String,
				Count: 0
			}
		],
		PositionsRemoved: 
		[
			{
				Key: String,
				Label: String,
				Count: 0
			}
		],
		EquipmentAdded: 
		[
			{
				Key: String,
				Label: String,
				Count: 0
			}
		],
		EquipmentRemoved: 
		[
			{
				Key: String,
				Label: String,
				Count: 0
			}
		],
		MaterialsAdded: 
		[
			{
				Key: String,
				Label: String,
				Count: 0
			}
		],
		MaterialsRemoved: 
		[
			{
				Key: String,
				Label: String,
				Count: 0
			}
		]
	}
}