| GET,OPTIONS | /v1/staff/board/{ProjectUID} |
|---|
import Foundation
import ServiceStack
public class StaffBoardRequest : Codable
{
public var projectUID:String
required public init(){}
}
public class StaffBoardResponse : Codable
{
public var responseStatus:ResponseStatus
public var positions:[StaffPosition] = []
public var openCount:Int
public var responsesActionable:Int
public var projectID:Int
required public init(){}
}
public class StaffPosition : Codable
{
public var placeholderContactID:Int
public var jobID:Int
public var projectID:Int
public var jobName:String
public var positionTag:String
public var skills:[String] = []
public var budgetedHours:Double
public var targetRate:Double
public var startDate:String
public var endDate:String
public var windowText:String
public var responsesActionable:Int
public var postingStatus:String
public var applicantTotal:Int
public var applicantStrong:Int
public var filled:Bool
required public init(){}
}
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/staff/board/{ProjectUID} 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
}
},
Positions:
[
{
PlaceholderContactID: 0,
JobID: 0,
ProjectID: 0,
JobName: String,
PositionTag: String,
Skills:
[
String
],
BudgetedHours: 0,
TargetRate: 0,
StartDate: String,
EndDate: String,
WindowText: String,
ResponsesActionable: 0,
PostingStatus: String,
ApplicantTotal: 0,
ApplicantStrong: 0,
Filled: False
}
],
OpenCount: 0,
ResponsesActionable: 0,
ProjectID: 0
}