| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/project/{ProjectID}/dependencies |
|---|
namespace CRM.AgencyPlatform.API.Internal
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type JobDependency() =
member val JobDependencyID:Int32 = new Int32() with get,set
member val TenantId:Guid = new Guid() with get,set
member val ProjectID:Int32 = new Int32() with get,set
member val PredecessorJobID:Int32 = new Int32() with get,set
member val SuccessorJobID:Int32 = new Int32() with get,set
member val DependencyType:String = null with get,set
member val LagDays:Int32 = new Int32() with get,set
member val CreatedBy:String = null with get,set
member val CreatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val UpdatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
[<AllowNullLiteral>]
type JobDependencyResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val ProjectID:Int32 = new Int32() with get,set
member val Dependencies:ResizeArray<JobDependency> = new ResizeArray<JobDependency>() with get,set
[<AllowNullLiteral>]
type JobDependencyListRequest() =
member val ProjectID:Int32 = new Int32() with get,set
F# JobDependencyListRequest 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/project/{ProjectID}/dependencies 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
}
},
ProjectID: 0,
Dependencies:
[
{
JobDependencyID: 0,
TenantId: 00000000000000000000000000000000,
ProjectID: 0,
PredecessorJobID: 0,
SuccessorJobID: 0,
DependencyType: String,
LagDays: 0,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01
}
]
}