| GET,OPTIONS | /v1/staff/match |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class StaffMatchRequest
{
public Integer PlaceholderContactID = null;
public Integer JobID = null;
public Integer getPlaceholderContactID() { return PlaceholderContactID; }
public StaffMatchRequest setPlaceholderContactID(Integer value) { this.PlaceholderContactID = value; return this; }
public Integer getJobID() { return JobID; }
public StaffMatchRequest setJobID(Integer value) { this.JobID = value; return this; }
}
public static class StaffMatchResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<StaffCandidate> Candidates = new ArrayList<StaffCandidate>();
public StaffPosition Position = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public StaffMatchResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<StaffCandidate> getCandidates() { return Candidates; }
public StaffMatchResponse setCandidates(ArrayList<StaffCandidate> value) { this.Candidates = value; return this; }
public StaffPosition getPosition() { return Position; }
public StaffMatchResponse setPosition(StaffPosition value) { this.Position = value; return this; }
}
public static class StaffCandidate
{
public Integer ContactID = null;
public String Name = null;
public String Kind = null;
public BigDecimal Rate = null;
public BigDecimal Rating = null;
public Integer RatingCount = null;
public String Base = null;
public Integer DistanceMi = null;
public Integer MatchCount = null;
public Integer TotalRequired = null;
public ArrayList<StaffSkillChip> Skills = new ArrayList<StaffSkillChip>();
public Boolean Conflict = null;
public String BusyUntil = null;
public String BusyJob = null;
public String Phone = null;
public String Email = null;
public Boolean Sms = null;
public Integer getContactID() { return ContactID; }
public StaffCandidate setContactID(Integer value) { this.ContactID = value; return this; }
public String getName() { return Name; }
public StaffCandidate setName(String value) { this.Name = value; return this; }
public String getKind() { return Kind; }
public StaffCandidate setKind(String value) { this.Kind = value; return this; }
public BigDecimal getRate() { return Rate; }
public StaffCandidate setRate(BigDecimal value) { this.Rate = value; return this; }
public BigDecimal getRating() { return Rating; }
public StaffCandidate setRating(BigDecimal value) { this.Rating = value; return this; }
public Integer getRatingCount() { return RatingCount; }
public StaffCandidate setRatingCount(Integer value) { this.RatingCount = value; return this; }
public String getBase() { return Base; }
public StaffCandidate setBase(String value) { this.Base = value; return this; }
public Integer getDistanceMi() { return DistanceMi; }
public StaffCandidate setDistanceMi(Integer value) { this.DistanceMi = value; return this; }
public Integer getMatchCount() { return MatchCount; }
public StaffCandidate setMatchCount(Integer value) { this.MatchCount = value; return this; }
public Integer getTotalRequired() { return TotalRequired; }
public StaffCandidate setTotalRequired(Integer value) { this.TotalRequired = value; return this; }
public ArrayList<StaffSkillChip> getSkills() { return Skills; }
public StaffCandidate setSkills(ArrayList<StaffSkillChip> value) { this.Skills = value; return this; }
public Boolean isConflict() { return Conflict; }
public StaffCandidate setConflict(Boolean value) { this.Conflict = value; return this; }
public String getBusyUntil() { return BusyUntil; }
public StaffCandidate setBusyUntil(String value) { this.BusyUntil = value; return this; }
public String getBusyJob() { return BusyJob; }
public StaffCandidate setBusyJob(String value) { this.BusyJob = value; return this; }
public String getPhone() { return Phone; }
public StaffCandidate setPhone(String value) { this.Phone = value; return this; }
public String getEmail() { return Email; }
public StaffCandidate setEmail(String value) { this.Email = value; return this; }
public Boolean isSms() { return Sms; }
public StaffCandidate setSms(Boolean value) { this.Sms = value; return this; }
}
public static class StaffSkillChip
{
public String Name = null;
public Boolean Matched = null;
public String getName() { return Name; }
public StaffSkillChip setName(String value) { this.Name = value; return this; }
public Boolean isMatched() { return Matched; }
public StaffSkillChip setMatched(Boolean value) { this.Matched = 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/match HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<StaffMatchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Candidates>
<StaffCandidate>
<Base>String</Base>
<BusyJob>String</BusyJob>
<BusyUntil>String</BusyUntil>
<Conflict>false</Conflict>
<ContactID>0</ContactID>
<DistanceMi>0</DistanceMi>
<Email>String</Email>
<Kind>String</Kind>
<MatchCount>0</MatchCount>
<Name>String</Name>
<Phone>String</Phone>
<Rate>0</Rate>
<Rating>0</Rating>
<RatingCount>0</RatingCount>
<Skills>
<StaffSkillChip>
<Matched>false</Matched>
<Name>String</Name>
</StaffSkillChip>
</Skills>
<Sms>false</Sms>
<TotalRequired>0</TotalRequired>
</StaffCandidate>
</Candidates>
<Position>
<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:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</Skills>
<StartDate>String</StartDate>
<TargetRate>0</TargetRate>
<WindowText>String</WindowText>
</Position>
<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>
</StaffMatchResponse>