| GET,OPTIONS | /v1/Material/{MaterialID}/audit |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class MaterialAuditRequest
{
open var MaterialID:Int? = null
}
open class MaterialAuditResponse
{
open var ResponseStatus:ResponseStatus? = null
open var Audit:ArrayList<MaterialAuditEntry> = ArrayList<MaterialAuditEntry>()
}
open class MaterialAuditEntry
{
open var MaterialAuditID:Int? = null
open var MaterialID:Int? = null
open var EventType:String? = null
open var Detail:String? = null
open var CreatedBy:String? = null
open var CreatedAt:String? = null
open var Ago:String? = null
}
Kotlin MaterialAuditRequest 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.
GET /v1/Material/{MaterialID}/audit 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
}
},
Audit:
[
{
MaterialAuditID: 0,
MaterialID: 0,
EventType: String,
Detail: String,
CreatedBy: String,
CreatedAt: String,
Ago: String
}
]
}