| GET,OPTIONS | /v1/Crew/Audit/{CrewID} |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class CrewAuditRequest
{
open var CrewID:Int? = null
}
open class CrewAuditResponse
{
open var ResponseStatus:ResponseStatus? = null
open var Audit:ArrayList<CrewAuditEntry> = ArrayList<CrewAuditEntry>()
}
open class CrewAuditEntry
{
open var CrewAuditID:Int? = null
open var CrewID: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
}
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/Crew/Audit/{CrewID} 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:
[
{
CrewAuditID: 0,
CrewID: 0,
EventType: String,
Detail: String,
CreatedBy: String,
CreatedAt: String,
Ago: String
}
]
}