| GET,OPTIONS | /v1/worker/crew |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class WorkerAppCrewRequest
{
open var Date:String? = null
}
open class WorkerAppCrewResponse
{
open var ResponseStatus:ResponseStatus? = null
open var IsCrewLead:Boolean? = null
open var DateLabel:String? = null
open var Rows:ArrayList<WorkerCrewRow> = ArrayList<WorkerCrewRow>()
}
open class WorkerCrewRow
{
open var ContactID:Int? = null
open var WorkerName:String? = null
open var Phone:String? = null
open var JobID:Int? = null
open var Status:String? = null
open var PropertyName:String? = null
open var Address:String? = null
}
Kotlin WorkerAppCrewRequest 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/worker/crew 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
}
},
IsCrewLead: False,
DateLabel: String,
Rows:
[
{
ContactID: 0,
WorkerName: String,
Phone: String,
JobID: 0,
Status: String,
PropertyName: String,
Address: String
}
]
}