| GET,OPTIONS | /v1/staff/board/{ProjectUID} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class StaffBoardRequest
{
public String ProjectUID = null;
public String getProjectUID() { return ProjectUID; }
public StaffBoardRequest setProjectUID(String value) { this.ProjectUID = value; return this; }
}
public static class StaffBoardResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<StaffPosition> Positions = new ArrayList<StaffPosition>();
public Integer OpenCount = null;
public Integer ResponsesActionable = null;
public Integer ProjectID = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public StaffBoardResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<StaffPosition> getPositions() { return Positions; }
public StaffBoardResponse setPositions(ArrayList<StaffPosition> value) { this.Positions = value; return this; }
public Integer getOpenCount() { return OpenCount; }
public StaffBoardResponse setOpenCount(Integer value) { this.OpenCount = value; return this; }
public Integer getResponsesActionable() { return ResponsesActionable; }
public StaffBoardResponse setResponsesActionable(Integer value) { this.ResponsesActionable = value; return this; }
public Integer getProjectID() { return ProjectID; }
public StaffBoardResponse setProjectID(Integer value) { this.ProjectID = value; return this; }
}
public static class StaffPosition
{
public Integer PlaceholderContactID = null;
public Integer JobID = null;
public Integer ProjectID = null;
public String JobName = null;
public String PositionTag = null;
public ArrayList<String> Skills = new ArrayList<String>();
public Double BudgetedHours = null;
public BigDecimal TargetRate = null;
public String StartDate = null;
public String EndDate = null;
public String WindowText = null;
public Integer ResponsesActionable = null;
public String PostingStatus = null;
public Integer ApplicantTotal = null;
public Integer ApplicantStrong = null;
public Boolean Filled = null;
public Integer getPlaceholderContactID() { return PlaceholderContactID; }
public StaffPosition setPlaceholderContactID(Integer value) { this.PlaceholderContactID = value; return this; }
public Integer getJobID() { return JobID; }
public StaffPosition setJobID(Integer value) { this.JobID = value; return this; }
public Integer getProjectID() { return ProjectID; }
public StaffPosition setProjectID(Integer value) { this.ProjectID = value; return this; }
public String getJobName() { return JobName; }
public StaffPosition setJobName(String value) { this.JobName = value; return this; }
public String getPositionTag() { return PositionTag; }
public StaffPosition setPositionTag(String value) { this.PositionTag = value; return this; }
public ArrayList<String> getSkills() { return Skills; }
public StaffPosition setSkills(ArrayList<String> value) { this.Skills = value; return this; }
public Double getBudgetedHours() { return BudgetedHours; }
public StaffPosition setBudgetedHours(Double value) { this.BudgetedHours = value; return this; }
public BigDecimal getTargetRate() { return TargetRate; }
public StaffPosition setTargetRate(BigDecimal value) { this.TargetRate = value; return this; }
public String getStartDate() { return StartDate; }
public StaffPosition setStartDate(String value) { this.StartDate = value; return this; }
public String getEndDate() { return EndDate; }
public StaffPosition setEndDate(String value) { this.EndDate = value; return this; }
public String getWindowText() { return WindowText; }
public StaffPosition setWindowText(String value) { this.WindowText = value; return this; }
public Integer getResponsesActionable() { return ResponsesActionable; }
public StaffPosition setResponsesActionable(Integer value) { this.ResponsesActionable = value; return this; }
public String getPostingStatus() { return PostingStatus; }
public StaffPosition setPostingStatus(String value) { this.PostingStatus = value; return this; }
public Integer getApplicantTotal() { return ApplicantTotal; }
public StaffPosition setApplicantTotal(Integer value) { this.ApplicantTotal = value; return this; }
public Integer getApplicantStrong() { return ApplicantStrong; }
public StaffPosition setApplicantStrong(Integer value) { this.ApplicantStrong = value; return this; }
public Boolean isFilled() { return Filled; }
public StaffPosition setFilled(Boolean value) { this.Filled = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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}