| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/project/{ProjectID}/dependencies |
|---|
import 'package:servicestack/servicestack.dart';
class JobDependency implements IConvertible
{
int? JobDependencyID;
String? TenantId;
int? ProjectID;
int? PredecessorJobID;
int? SuccessorJobID;
String? DependencyType;
int? LagDays;
String? CreatedBy;
DateTime? CreatedAt;
DateTime? UpdatedAt;
JobDependency({this.JobDependencyID,this.TenantId,this.ProjectID,this.PredecessorJobID,this.SuccessorJobID,this.DependencyType,this.LagDays,this.CreatedBy,this.CreatedAt,this.UpdatedAt});
JobDependency.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
JobDependencyID = json['JobDependencyID'];
TenantId = json['TenantId'];
ProjectID = json['ProjectID'];
PredecessorJobID = json['PredecessorJobID'];
SuccessorJobID = json['SuccessorJobID'];
DependencyType = json['DependencyType'];
LagDays = json['LagDays'];
CreatedBy = json['CreatedBy'];
CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!);
UpdatedAt = JsonConverters.fromJson(json['UpdatedAt'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'JobDependencyID': JobDependencyID,
'TenantId': TenantId,
'ProjectID': ProjectID,
'PredecessorJobID': PredecessorJobID,
'SuccessorJobID': SuccessorJobID,
'DependencyType': DependencyType,
'LagDays': LagDays,
'CreatedBy': CreatedBy,
'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!),
'UpdatedAt': JsonConverters.toJson(UpdatedAt,'DateTime',context!)
};
getTypeName() => "JobDependency";
TypeContext? context = _ctx;
}
class JobDependencyResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
int? ProjectID;
List<JobDependency>? Dependencies = [];
JobDependencyResponse({this.ResponseStatus,this.ProjectID,this.Dependencies});
JobDependencyResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
ProjectID = json['ProjectID'];
Dependencies = JsonConverters.fromJson(json['Dependencies'],'List<JobDependency>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'ProjectID': ProjectID,
'Dependencies': JsonConverters.toJson(Dependencies,'List<JobDependency>',context!)
};
getTypeName() => "JobDependencyResponse";
TypeContext? context = _ctx;
}
class JobDependencyListRequest implements IConvertible
{
int? ProjectID;
JobDependencyListRequest({this.ProjectID});
JobDependencyListRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ProjectID = json['ProjectID'];
return this;
}
Map<String, dynamic> toJson() => {
'ProjectID': ProjectID
};
getTypeName() => "JobDependencyListRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'JobDependency': TypeInfo(TypeOf.Class, create:() => JobDependency()),
'JobDependencyResponse': TypeInfo(TypeOf.Class, create:() => JobDependencyResponse()),
'List<JobDependency>': TypeInfo(TypeOf.Class, create:() => <JobDependency>[]),
'JobDependencyListRequest': TypeInfo(TypeOf.Class, create:() => JobDependencyListRequest()),
});
Dart JobDependencyListRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/project/{ProjectID}/dependencies HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectID":0,"Dependencies":[{"JobDependencyID":0,"TenantId":"00000000000000000000000000000000","ProjectID":0,"PredecessorJobID":0,"SuccessorJobID":0,"DependencyType":"String","LagDays":0,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}]}