| GET,POST,PUT,DELETE,OPTIONS | /v1/MaterialStatus/{MaterialStatusID} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/MaterialStatus |
"use strict";
export class MaterialStatu {
/** @param {{MaterialStatusID?:number,MaterialStatusName?:string,MaterialStatusDescription?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
MaterialStatusID;
/** @type {string} */
MaterialStatusName;
/** @type {string} */
MaterialStatusDescription;
}
export class MaterialStatusResponse {
/** @param {{ResponseStatus?:ResponseStatus,MaterialStatus?:MaterialStatu[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {MaterialStatu[]} */
MaterialStatus = [];
}
export class MaterialStatusRequest {
/** @param {{MaterialStatusID?:number,MaterialStatus?:MaterialStatu[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
MaterialStatusID;
/** @type {MaterialStatu[]} */
MaterialStatus = [];
}
JavaScript MaterialStatusRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/MaterialStatus/{MaterialStatusID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
MaterialStatusID: 0,
MaterialStatus:
[
{
MaterialStatusID: 0,
MaterialStatusName: String,
MaterialStatusDescription: String
}
]
}
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
}
},
MaterialStatus:
[
{
MaterialStatusID: 0,
MaterialStatusName: String,
MaterialStatusDescription: String
}
]
}