| GET,OPTIONS | /v1/Equipment/{EquipmentID}/usage |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class EquipmentUsageRequest
{
open var EquipmentID:Int? = null
}
open class EquipmentUsageResponse
{
open var ResponseStatus:ResponseStatus? = null
open var Usage:ArrayList<EquipmentUsageEntry> = ArrayList<EquipmentUsageEntry>()
}
open class EquipmentUsageEntry
{
open var ProjectJobEquipmentID:Int? = null
open var ProjectID:Int? = null
open var ProjectName:String? = null
open var JobID:Int? = null
open var JobName:String? = null
open var StatusID:Int? = null
open var StartDate:Date? = null
open var EndDate:Date? = null
open var BookingCount:Int? = null
}
Kotlin EquipmentUsageRequest 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/Equipment/{EquipmentID}/usage 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
}
},
Usage:
[
{
ProjectJobEquipmentID: 0,
ProjectID: 0,
ProjectName: String,
JobID: 0,
JobName: String,
StatusID: 0,
StartDate: 0001-01-01,
EndDate: 0001-01-01,
BookingCount: 0
}
]
}