| GET,OPTIONS | /v1/pm/resources |
|---|
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 PmResCommitment
Public Overridable Property ProjectName As String
Public Overridable Property JobName As String
Public Overridable Property StartDate As String
Public Overridable Property EndDate As String
End Class
Public Partial Class PmResEquipment
Public Overridable Property EquipmentID As Integer
Public Overridable Property Name As String
Public Overridable Property EquipmentType As String
Public Overridable Property SerialNumber As String
Public Overridable Property JobCount As Integer
Public Overridable Property Overbooked As Boolean
Public Overridable Property MaintenanceState As String
Public Overridable Property Commitments As List(Of PmResCommitment) = New List(Of PmResCommitment)
End Class
Public Partial Class PmResMaterial
Public Overridable Property MaterialID As Integer
Public Overridable Property Name As String
Public Overridable Property MaterialType As String
Public Overridable Property OnHand As Integer
Public Overridable Property NeededByJobs As Integer
Public Overridable Property QtyNeeded As Integer
Public Overridable Property Shortfall As Boolean
End Class
Public Partial Class PmResourcesRequest
Public Overridable Property Days As Integer
End Class
Public Partial Class PmResourcesResponse
Public Overridable Property FromDate As String
Public Overridable Property ToDate As String
Public Overridable Property OverbookedCount As Integer
Public Overridable Property CommittedCount As Integer
Public Overridable Property ShortfallCount As Integer
Public Overridable Property Equipment As List(Of PmResEquipment) = New List(Of PmResEquipment)
Public Overridable Property Materials As List(Of PmResMaterial) = New List(Of PmResMaterial)
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
VB.NET PmResourcesRequest 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/pm/resources HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"FromDate":"String","ToDate":"String","OverbookedCount":0,"CommittedCount":0,"ShortfallCount":0,"Equipment":[{"EquipmentID":0,"Name":"String","EquipmentType":"String","SerialNumber":"String","JobCount":0,"Overbooked":false,"MaintenanceState":"String","Commitments":[{"ProjectName":"String","JobName":"String","StartDate":"String","EndDate":"String"}]}],"Materials":[{"MaterialID":0,"Name":"String","MaterialType":"String","OnHand":0,"NeededByJobs":0,"QtyNeeded":0,"Shortfall":false}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}