| GET,OPTIONS | /v1/staff/board/{ProjectUID} |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class StaffPosition:
placeholder_contact_i_d: int = 0
job_i_d: int = 0
project_i_d: int = 0
job_name: Optional[str] = None
position_tag: Optional[str] = None
skills: List[str] = field(default_factory=list)
budgeted_hours: float = 0.0
target_rate: Decimal = decimal.Decimal(0)
start_date: Optional[str] = None
end_date: Optional[str] = None
window_text: Optional[str] = None
responses_actionable: int = 0
posting_status: Optional[str] = None
applicant_total: int = 0
applicant_strong: int = 0
filled: bool = False
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class StaffBoardResponse:
response_status: Optional[ResponseStatus] = None
positions: List[StaffPosition] = field(default_factory=list)
open_count: int = 0
responses_actionable: int = 0
project_i_d: int = 0
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class StaffBoardRequest:
project_u_i_d: Optional[str] = None
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
}