| GET,OPTIONS | /v1/staff/posting/detail |
|---|
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 StaffPostingDto:
staff_posting_i_d: int = 0
position_tag: Optional[str] = None
title: Optional[str] = None
body: Optional[str] = None
rate_target: Decimal = decimal.Decimal(0)
location_text: Optional[str] = None
window_text: Optional[str] = None
sites: List[str] = field(default_factory=list)
status: Optional[str] = None
apply_url: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class StaffApplicantDto:
staff_applicant_i_d: int = 0
name: Optional[str] = None
source: Optional[str] = None
years_experience: int = 0
ask_rate: Decimal = decimal.Decimal(0)
distance_mi: int = 0
base: Optional[str] = None
fit_tier: Optional[str] = None
fit_score: int = 0
matched_skills: List[str] = field(default_factory=list)
reasons: List[str] = field(default_factory=list)
resume_text: Optional[str] = None
status: Optional[str] = None
interview_slot: Optional[str] = None
ago: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class StaffPostingResponse:
response_status: Optional[ResponseStatus] = None
posting: Optional[StaffPostingDto] = None
applicants: List[StaffApplicantDto] = field(default_factory=list)
applicant_total: int = 0
applicant_strong: int = 0
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class StaffPostingGetRequest:
placeholder_contact_i_d: int = 0
Python StaffPostingGetRequest DTOs
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/posting/detail 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
}
},
Posting:
{
StaffPostingID: 0,
PositionTag: String,
Title: String,
Body: String,
RateTarget: 0,
LocationText: String,
WindowText: String,
Sites:
[
String
],
Status: String,
ApplyUrl: String
},
Applicants:
[
{
StaffApplicantID: 0,
Name: String,
Source: String,
YearsExperience: 0,
AskRate: 0,
DistanceMi: 0,
Base: String,
FitTier: String,
FitScore: 0,
MatchedSkills:
[
String
],
Reasons:
[
String
],
ResumeText: String,
Status: String,
InterviewSlot: String,
Ago: String
}
],
ApplicantTotal: 0,
ApplicantStrong: 0
}