| GET,OPTIONS | /v1/AttachmentView/{AttachmentId} |
|---|
"use strict";
export class AttachmentViewResponse {
/** @param {{ResponseStatus?:ResponseStatus,AttachmentId?:string,FileName?:string,MimeType?:string,FileSizeInKB?:number,Extension?:string,Category?:string,Viewer?:string,IsSensitive?:boolean,CanDownload?:boolean,ContentUrl?:string,MediaUrl?:string,PageCount?:number,CurrentVersionNo?:number,VersionCount?:number,TableName?:string,RecordId?:number,CreatedBy?:string,CreatedDate?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {string} */
AttachmentId;
/** @type {string} */
FileName;
/** @type {string} */
MimeType;
/** @type {number} */
FileSizeInKB;
/** @type {string} */
Extension;
/** @type {string} */
Category;
/** @type {string} */
Viewer;
/** @type {boolean} */
IsSensitive;
/** @type {boolean} */
CanDownload;
/** @type {string} */
ContentUrl;
/** @type {string} */
MediaUrl;
/** @type {number} */
PageCount;
/** @type {number} */
CurrentVersionNo;
/** @type {number} */
VersionCount;
/** @type {string} */
TableName;
/** @type {number} */
RecordId;
/** @type {string} */
CreatedBy;
/** @type {?string} */
CreatedDate;
}
export class AttachmentViewRequest {
/** @param {{AttachmentId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
AttachmentId;
}
JavaScript AttachmentViewRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/AttachmentView/{AttachmentId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"AttachmentId":"00000000000000000000000000000000","FileName":"String","MimeType":"String","FileSizeInKB":0,"Extension":"String","Category":"String","Viewer":"String","IsSensitive":false,"CanDownload":false,"ContentUrl":"String","MediaUrl":"String","PageCount":0,"CurrentVersionNo":0,"VersionCount":0,"TableName":"String","RecordId":0,"CreatedBy":"String","CreatedDate":"0001-01-01T00:00:00.0000000"}