| GET,POST,PUT,DELETE,OPTIONS | /v1/Project/Job/CrewMembers/{ProjectID} |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class ProjectJobsCrewMembersRequest
{
open var ProjectID:Int? = null
}
open class ProjectJobsCrewMembersResponse
{
open var ResponseStatus:ResponseStatus? = null
open var ProjectJobsCrewMembers:ArrayList<ProjectJobsCrewMember> = ArrayList<ProjectJobsCrewMember>()
}
open class ProjectJobsCrewMember
{
open var ProjectJobCrewMemberID:Int? = null
open var BudgetedHours:Double? = null
open var JobID:Int? = null
open var ContactID:Int? = null
open var ContactName:String? = null
open var ProjectID:Int? = null
}
Kotlin ProjectJobsCrewMembersRequest 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/Project/Job/CrewMembers/{ProjectID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ProjectID: 0
}
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
}
},
ProjectJobsCrewMembers:
[
{
ProjectJobCrewMemberID: 0,
BudgetedHours: 0,
JobID: 0,
ContactID: 0,
ContactName: String,
ProjectID: 0
}
]
}