Trendsic Platform Service

<back to all web services

JobDependencyListRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/project/{ProjectID}/dependencies
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class JobDependency
            Public Overridable Property JobDependencyID As Integer
            Public Overridable Property TenantId As Guid
            Public Overridable Property ProjectID As Integer
            Public Overridable Property PredecessorJobID As Integer
            Public Overridable Property SuccessorJobID As Integer
            Public Overridable Property DependencyType As String
            Public Overridable Property LagDays As Integer
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
        End Class

        Public Partial Class JobDependencyListRequest
            Public Overridable Property ProjectID As Integer
        End Class

        Public Partial Class JobDependencyResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property ProjectID As Integer
            Public Overridable Property Dependencies As List(Of JobDependency) = New List(Of JobDependency)
        End Class
    End Namespace
End Namespace

VB.NET JobDependencyListRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + 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"}]}