| GET,OPTIONS | /v1/staff/apply/{PostingUID}/info |
|---|
import 'package:servicestack/servicestack.dart';
class StaffApplyInfoResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
bool? Ok;
bool? Closed;
String? Title;
String? PositionTag;
String? Location;
String? Window;
String? RateText;
String? CompanyName;
List<String>? Requirements = [];
StaffApplyInfoResponse({this.ResponseStatus,this.Ok,this.Closed,this.Title,this.PositionTag,this.Location,this.Window,this.RateText,this.CompanyName,this.Requirements});
StaffApplyInfoResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
Ok = json['Ok'];
Closed = json['Closed'];
Title = json['Title'];
PositionTag = json['PositionTag'];
Location = json['Location'];
Window = json['Window'];
RateText = json['RateText'];
CompanyName = json['CompanyName'];
Requirements = JsonConverters.fromJson(json['Requirements'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'Ok': Ok,
'Closed': Closed,
'Title': Title,
'PositionTag': PositionTag,
'Location': Location,
'Window': Window,
'RateText': RateText,
'CompanyName': CompanyName,
'Requirements': JsonConverters.toJson(Requirements,'List<String>',context!)
};
getTypeName() => "StaffApplyInfoResponse";
TypeContext? context = _ctx;
}
class StaffApplyInfoRequest implements IConvertible
{
String? PostingUID;
StaffApplyInfoRequest({this.PostingUID});
StaffApplyInfoRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
PostingUID = json['PostingUID'];
return this;
}
Map<String, dynamic> toJson() => {
'PostingUID': PostingUID
};
getTypeName() => "StaffApplyInfoRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'StaffApplyInfoResponse': TypeInfo(TypeOf.Class, create:() => StaffApplyInfoResponse()),
'StaffApplyInfoRequest': TypeInfo(TypeOf.Class, create:() => StaffApplyInfoRequest()),
});
Dart StaffApplyInfoRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/staff/apply/{PostingUID}/info HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Ok":false,"Closed":false,"Title":"String","PositionTag":"String","Location":"String","Window":"String","RateText":"String","CompanyName":"String","Requirements":["String"]}