| GET,OPTIONS | /v1/projects/{ProjectID}/rfis/{RfiID} |
|---|
import 'package:servicestack/servicestack.dart';
class Rfi implements IConvertible
{
int? RfiID;
String? RfiUID;
int? ProjectID;
String? RfiNo;
String? Subject;
String? Question;
String? Answer;
String? Discipline;
String? AskedOf;
String? Status;
bool? CostImpact;
bool? ScheduleImpact;
DateTime? SubmittedDate;
DateTime? DueDate;
DateTime? AnsweredDate;
DateTime? ClosedDate;
int? PromotedChangeOrderID;
String? CreatedBy;
DateTime? CreatedAt;
DateTime? UpdatedAt;
int? DaysOpen;
Rfi({this.RfiID,this.RfiUID,this.ProjectID,this.RfiNo,this.Subject,this.Question,this.Answer,this.Discipline,this.AskedOf,this.Status,this.CostImpact,this.ScheduleImpact,this.SubmittedDate,this.DueDate,this.AnsweredDate,this.ClosedDate,this.PromotedChangeOrderID,this.CreatedBy,this.CreatedAt,this.UpdatedAt,this.DaysOpen});
Rfi.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
RfiID = json['RfiID'];
RfiUID = json['RfiUID'];
ProjectID = json['ProjectID'];
RfiNo = json['RfiNo'];
Subject = json['Subject'];
Question = json['Question'];
Answer = json['Answer'];
Discipline = json['Discipline'];
AskedOf = json['AskedOf'];
Status = json['Status'];
CostImpact = json['CostImpact'];
ScheduleImpact = json['ScheduleImpact'];
SubmittedDate = JsonConverters.fromJson(json['SubmittedDate'],'DateTime',context!);
DueDate = JsonConverters.fromJson(json['DueDate'],'DateTime',context!);
AnsweredDate = JsonConverters.fromJson(json['AnsweredDate'],'DateTime',context!);
ClosedDate = JsonConverters.fromJson(json['ClosedDate'],'DateTime',context!);
PromotedChangeOrderID = json['PromotedChangeOrderID'];
CreatedBy = json['CreatedBy'];
CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!);
UpdatedAt = JsonConverters.fromJson(json['UpdatedAt'],'DateTime',context!);
DaysOpen = json['DaysOpen'];
return this;
}
Map<String, dynamic> toJson() => {
'RfiID': RfiID,
'RfiUID': RfiUID,
'ProjectID': ProjectID,
'RfiNo': RfiNo,
'Subject': Subject,
'Question': Question,
'Answer': Answer,
'Discipline': Discipline,
'AskedOf': AskedOf,
'Status': Status,
'CostImpact': CostImpact,
'ScheduleImpact': ScheduleImpact,
'SubmittedDate': JsonConverters.toJson(SubmittedDate,'DateTime',context!),
'DueDate': JsonConverters.toJson(DueDate,'DateTime',context!),
'AnsweredDate': JsonConverters.toJson(AnsweredDate,'DateTime',context!),
'ClosedDate': JsonConverters.toJson(ClosedDate,'DateTime',context!),
'PromotedChangeOrderID': PromotedChangeOrderID,
'CreatedBy': CreatedBy,
'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!),
'UpdatedAt': JsonConverters.toJson(UpdatedAt,'DateTime',context!),
'DaysOpen': DaysOpen
};
getTypeName() => "Rfi";
TypeContext? context = _ctx;
}
class RfiResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
Rfi? Rfi;
RfiResponse({this.ResponseStatus,this.Rfi});
RfiResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
Rfi = JsonConverters.fromJson(json['Rfi'],'Rfi',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'Rfi': JsonConverters.toJson(Rfi,'Rfi',context!)
};
getTypeName() => "RfiResponse";
TypeContext? context = _ctx;
}
class RfiDetailRequest implements IConvertible
{
int? ProjectID;
int? RfiID;
RfiDetailRequest({this.ProjectID,this.RfiID});
RfiDetailRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ProjectID = json['ProjectID'];
RfiID = json['RfiID'];
return this;
}
Map<String, dynamic> toJson() => {
'ProjectID': ProjectID,
'RfiID': RfiID
};
getTypeName() => "RfiDetailRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'Rfi': TypeInfo(TypeOf.Class, create:() => Rfi()),
'RfiResponse': TypeInfo(TypeOf.Class, create:() => RfiResponse()),
'RfiDetailRequest': TypeInfo(TypeOf.Class, create:() => RfiDetailRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/projects/{ProjectID}/rfis/{RfiID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<RfiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<Rfi>
<Answer>String</Answer>
<AnsweredDate>0001-01-01T00:00:00</AnsweredDate>
<AskedOf>String</AskedOf>
<ClosedDate>0001-01-01T00:00:00</ClosedDate>
<CostImpact>false</CostImpact>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<DaysOpen>0</DaysOpen>
<Discipline>String</Discipline>
<DueDate>0001-01-01T00:00:00</DueDate>
<ProjectID>0</ProjectID>
<PromotedChangeOrderID>0</PromotedChangeOrderID>
<Question>String</Question>
<RfiID>0</RfiID>
<RfiNo>String</RfiNo>
<RfiUID>00000000-0000-0000-0000-000000000000</RfiUID>
<ScheduleImpact>false</ScheduleImpact>
<Status>String</Status>
<Subject>String</Subject>
<SubmittedDate>0001-01-01T00:00:00</SubmittedDate>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
</Rfi>
</RfiResponse>