| GET,OPTIONS | /v1/staff/match |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class StaffCandidate
Public Overridable Property ContactID As Integer
Public Overridable Property Name As String
Public Overridable Property Kind As String
Public Overridable Property Rate As Decimal
Public Overridable Property Rating As Decimal
Public Overridable Property RatingCount As Integer
Public Overridable Property Base As String
Public Overridable Property DistanceMi As Integer
Public Overridable Property MatchCount As Integer
Public Overridable Property TotalRequired As Integer
Public Overridable Property Skills As List(Of StaffSkillChip) = New List(Of StaffSkillChip)
Public Overridable Property Conflict As Boolean
Public Overridable Property BusyUntil As String
Public Overridable Property BusyJob As String
Public Overridable Property Phone As String
Public Overridable Property Email As String
Public Overridable Property Sms As Boolean
End Class
Public Partial Class StaffMatchRequest
Public Overridable Property PlaceholderContactID As Integer
Public Overridable Property JobID As Integer
End Class
Public Partial Class StaffMatchResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Candidates As List(Of StaffCandidate) = New List(Of StaffCandidate)
Public Overridable Property Position As StaffPosition
End Class
Public Partial Class StaffPosition
Public Overridable Property PlaceholderContactID As Integer
Public Overridable Property JobID As Integer
Public Overridable Property ProjectID As Integer
Public Overridable Property JobName As String
Public Overridable Property PositionTag As String
Public Overridable Property Skills As List(Of String) = New List(Of String)
Public Overridable Property BudgetedHours As Double
Public Overridable Property TargetRate As Decimal
Public Overridable Property StartDate As String
Public Overridable Property EndDate As String
Public Overridable Property WindowText As String
Public Overridable Property ResponsesActionable As Integer
Public Overridable Property PostingStatus As String
Public Overridable Property ApplicantTotal As Integer
Public Overridable Property ApplicantStrong As Integer
Public Overridable Property Filled As Boolean
End Class
Public Partial Class StaffSkillChip
Public Overridable Property Name As String
Public Overridable Property Matched As Boolean
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Candidates":[{"ContactID":0,"Name":"String","Kind":"String","Rate":0,"Rating":0,"RatingCount":0,"Base":"String","DistanceMi":0,"MatchCount":0,"TotalRequired":0,"Skills":[{"Name":"String","Matched":false}],"Conflict":false,"BusyUntil":"String","BusyJob":"String","Phone":"String","Email":"String","Sms":false}],"Position":{"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}}