| GET,OPTIONS | /v1/projects/{ProjectID}/ncrs |
|---|
"use strict";
export class Ncr {
/** @param {{NcrID?:number,NcrUID?:string,ProjectID?:number,QcTestID?:number,NcrNo?:string,Title?:string,Description?:string,CostCode?:string,Disposition?:string,DispositionType?:string,CorrectiveAction?:string,DispositionedBy?:string,DispositionedAt?:string,CreatedBy?:string,CreatedAt?:string,UpdatedAt?:string,TestNo?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
NcrID;
/** @type {string} */
NcrUID;
/** @type {number} */
ProjectID;
/** @type {?number} */
QcTestID;
/** @type {string} */
NcrNo;
/** @type {string} */
Title;
/** @type {string} */
Description;
/** @type {string} */
CostCode;
/** @type {string} */
Disposition;
/** @type {string} */
DispositionType;
/** @type {string} */
CorrectiveAction;
/** @type {string} */
DispositionedBy;
/** @type {?string} */
DispositionedAt;
/** @type {string} */
CreatedBy;
/** @type {?string} */
CreatedAt;
/** @type {?string} */
UpdatedAt;
/** @type {string} */
TestNo;
}
export class NcrListResponse {
/** @param {{ResponseStatus?:ResponseStatus,ProjectID?:number,Ncrs?:Ncr[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {number} */
ProjectID;
/** @type {Ncr[]} */
Ncrs = [];
}
export class NcrListRequest {
/** @param {{ProjectID?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
ProjectID;
}
JavaScript NcrListRequest 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/projects/{ProjectID}/ncrs HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectID":0,"Ncrs":[{"NcrID":0,"NcrUID":"00000000000000000000000000000000","ProjectID":0,"QcTestID":0,"NcrNo":"String","Title":"String","Description":"String","CostCode":"String","Disposition":"String","DispositionType":"String","CorrectiveAction":"String","DispositionedBy":"String","DispositionedAt":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","TestNo":"String"}]}