| GET | /v1/resource-conflicts |
|---|
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 ResourceConflictBookingDto
Public Overridable Property Project As String
Public Overridable Property Job As String
Public Overridable Property Window As String
Public Overridable Property Tag As String
Public Overridable Property Hot As Boolean
End Class
Public Partial Class ResourceConflictDto
Public Overridable Property Id As String
Public Overridable Property Kind As String
Public Overridable Property Name As String
Public Overridable Property Severity As String
Public Overridable Property Summary As String
Public Overridable Property Bookings As List(Of ResourceConflictBookingDto) = New List(Of ResourceConflictBookingDto)
Public Overridable Property Options As List(Of ResourceConflictOptionDto) = New List(Of ResourceConflictOptionDto)
End Class
Public Partial Class ResourceConflictOptionDto
Public Overridable Property Id As String
Public Overridable Property Label As String
Public Overridable Property Note As String
Public Overridable Property Clears As Boolean
Public Overridable Property Recommended As Boolean
Public Overridable Property Why As String
Public Overridable Property ActionJson As String
End Class
Public Partial Class ResourceConflictsRequest
Public Overridable Property Window As Integer
End Class
Public Partial Class ResourceConflictsResponse
Public Overridable Property Conflicts As List(Of ResourceConflictDto) = New List(Of ResourceConflictDto)
Public Overridable Property EquipmentWatched As Integer
Public Overridable Property WorkersWatched As Integer
Public Overridable Property CrewsWatched As Integer
Public Overridable Property ResolvedInWindow As Integer
Public Overridable Property CanResolve As Boolean
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
VB.NET ResourceConflictsRequest 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/resource-conflicts HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Conflicts:
[
{
Id: String,
Kind: String,
Name: String,
Severity: String,
Summary: String,
Bookings:
[
{
Project: String,
Job: String,
Window: String,
Tag: String,
Hot: False
}
],
Options:
[
{
Id: String,
Label: String,
Note: String,
Clears: False,
Recommended: False,
Why: String,
ActionJson: String
}
]
}
],
EquipmentWatched: 0,
WorkersWatched: 0,
CrewsWatched: 0,
ResolvedInWindow: 0,
CanResolve: False,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}