| GET,OPTIONS | /v1/staff/match |
|---|
import 'package:servicestack/servicestack.dart';
class StaffSkillChip implements IConvertible
{
String? Name;
bool? Matched;
StaffSkillChip({this.Name,this.Matched});
StaffSkillChip.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Name = json['Name'];
Matched = json['Matched'];
return this;
}
Map<String, dynamic> toJson() => {
'Name': Name,
'Matched': Matched
};
getTypeName() => "StaffSkillChip";
TypeContext? context = _ctx;
}
class StaffCandidate implements IConvertible
{
int? ContactID;
String? Name;
String? Kind;
double? Rate;
double? Rating;
int? RatingCount;
String? Base;
int? DistanceMi;
int? MatchCount;
int? TotalRequired;
List<StaffSkillChip>? Skills = [];
bool? Conflict;
String? BusyUntil;
String? BusyJob;
String? Phone;
String? Email;
bool? Sms;
StaffCandidate({this.ContactID,this.Name,this.Kind,this.Rate,this.Rating,this.RatingCount,this.Base,this.DistanceMi,this.MatchCount,this.TotalRequired,this.Skills,this.Conflict,this.BusyUntil,this.BusyJob,this.Phone,this.Email,this.Sms});
StaffCandidate.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ContactID = json['ContactID'];
Name = json['Name'];
Kind = json['Kind'];
Rate = JsonConverters.toDouble(json['Rate']);
Rating = JsonConverters.toDouble(json['Rating']);
RatingCount = json['RatingCount'];
Base = json['Base'];
DistanceMi = json['DistanceMi'];
MatchCount = json['MatchCount'];
TotalRequired = json['TotalRequired'];
Skills = JsonConverters.fromJson(json['Skills'],'List<StaffSkillChip>',context!);
Conflict = json['Conflict'];
BusyUntil = json['BusyUntil'];
BusyJob = json['BusyJob'];
Phone = json['Phone'];
Email = json['Email'];
Sms = json['Sms'];
return this;
}
Map<String, dynamic> toJson() => {
'ContactID': ContactID,
'Name': Name,
'Kind': Kind,
'Rate': Rate,
'Rating': Rating,
'RatingCount': RatingCount,
'Base': Base,
'DistanceMi': DistanceMi,
'MatchCount': MatchCount,
'TotalRequired': TotalRequired,
'Skills': JsonConverters.toJson(Skills,'List<StaffSkillChip>',context!),
'Conflict': Conflict,
'BusyUntil': BusyUntil,
'BusyJob': BusyJob,
'Phone': Phone,
'Email': Email,
'Sms': Sms
};
getTypeName() => "StaffCandidate";
TypeContext? context = _ctx;
}
class StaffPosition implements IConvertible
{
int? PlaceholderContactID;
int? JobID;
int? ProjectID;
String? JobName;
String? PositionTag;
List<String>? Skills = [];
double? BudgetedHours;
double? TargetRate;
String? StartDate;
String? EndDate;
String? WindowText;
int? ResponsesActionable;
String? PostingStatus;
int? ApplicantTotal;
int? ApplicantStrong;
bool? Filled;
StaffPosition({this.PlaceholderContactID,this.JobID,this.ProjectID,this.JobName,this.PositionTag,this.Skills,this.BudgetedHours,this.TargetRate,this.StartDate,this.EndDate,this.WindowText,this.ResponsesActionable,this.PostingStatus,this.ApplicantTotal,this.ApplicantStrong,this.Filled});
StaffPosition.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
PlaceholderContactID = json['PlaceholderContactID'];
JobID = json['JobID'];
ProjectID = json['ProjectID'];
JobName = json['JobName'];
PositionTag = json['PositionTag'];
Skills = JsonConverters.fromJson(json['Skills'],'List<String>',context!);
BudgetedHours = JsonConverters.toDouble(json['BudgetedHours']);
TargetRate = JsonConverters.toDouble(json['TargetRate']);
StartDate = json['StartDate'];
EndDate = json['EndDate'];
WindowText = json['WindowText'];
ResponsesActionable = json['ResponsesActionable'];
PostingStatus = json['PostingStatus'];
ApplicantTotal = json['ApplicantTotal'];
ApplicantStrong = json['ApplicantStrong'];
Filled = json['Filled'];
return this;
}
Map<String, dynamic> toJson() => {
'PlaceholderContactID': PlaceholderContactID,
'JobID': JobID,
'ProjectID': ProjectID,
'JobName': JobName,
'PositionTag': PositionTag,
'Skills': JsonConverters.toJson(Skills,'List<String>',context!),
'BudgetedHours': BudgetedHours,
'TargetRate': TargetRate,
'StartDate': StartDate,
'EndDate': EndDate,
'WindowText': WindowText,
'ResponsesActionable': ResponsesActionable,
'PostingStatus': PostingStatus,
'ApplicantTotal': ApplicantTotal,
'ApplicantStrong': ApplicantStrong,
'Filled': Filled
};
getTypeName() => "StaffPosition";
TypeContext? context = _ctx;
}
class StaffMatchResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<StaffCandidate>? Candidates = [];
StaffPosition? Position;
StaffMatchResponse({this.ResponseStatus,this.Candidates,this.Position});
StaffMatchResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
Candidates = JsonConverters.fromJson(json['Candidates'],'List<StaffCandidate>',context!);
Position = JsonConverters.fromJson(json['Position'],'StaffPosition',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'Candidates': JsonConverters.toJson(Candidates,'List<StaffCandidate>',context!),
'Position': JsonConverters.toJson(Position,'StaffPosition',context!)
};
getTypeName() => "StaffMatchResponse";
TypeContext? context = _ctx;
}
class StaffMatchRequest implements IConvertible
{
int? PlaceholderContactID;
int? JobID;
StaffMatchRequest({this.PlaceholderContactID,this.JobID});
StaffMatchRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
PlaceholderContactID = json['PlaceholderContactID'];
JobID = json['JobID'];
return this;
}
Map<String, dynamic> toJson() => {
'PlaceholderContactID': PlaceholderContactID,
'JobID': JobID
};
getTypeName() => "StaffMatchRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'StaffSkillChip': TypeInfo(TypeOf.Class, create:() => StaffSkillChip()),
'StaffCandidate': TypeInfo(TypeOf.Class, create:() => StaffCandidate()),
'List<StaffSkillChip>': TypeInfo(TypeOf.Class, create:() => <StaffSkillChip>[]),
'StaffPosition': TypeInfo(TypeOf.Class, create:() => StaffPosition()),
'StaffMatchResponse': TypeInfo(TypeOf.Class, create:() => StaffMatchResponse()),
'List<StaffCandidate>': TypeInfo(TypeOf.Class, create:() => <StaffCandidate>[]),
'StaffMatchRequest': TypeInfo(TypeOf.Class, create:() => StaffMatchRequest()),
});
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/match 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
}
},
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
}
}