| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<StaffBoardResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<OpenCount>0</OpenCount>
<Positions>
<StaffPosition>
<ApplicantStrong>0</ApplicantStrong>
<ApplicantTotal>0</ApplicantTotal>
<BudgetedHours>0</BudgetedHours>
<EndDate>String</EndDate>
<Filled>false</Filled>
<JobID>0</JobID>
<JobName>String</JobName>
<PlaceholderContactID>0</PlaceholderContactID>
<PositionTag>String</PositionTag>
<PostingStatus>String</PostingStatus>
<ProjectID>0</ProjectID>
<ResponsesActionable>0</ResponsesActionable>
<Skills xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</Skills>
<StartDate>String</StartDate>
<TargetRate>0</TargetRate>
<WindowText>String</WindowText>
</StaffPosition>
</Positions>
<ProjectID>0</ProjectID>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<ResponsesActionable>0</ResponsesActionable>
</StaffBoardResponse>