Trendsic Platform Service

<back to all web services

ResourceConflictsRequest

Requires Authentication
The following routes are available for this service:
GET/v1/resource-conflicts
import Foundation
import ServiceStack

public class ResourceConflictsRequest : Codable
{
    public var window:Int

    required public init(){}
}

public class ResourceConflictsResponse : Codable
{
    public var conflicts:[ResourceConflictDto] = []
    public var equipmentWatched:Int
    public var workersWatched:Int
    public var crewsWatched:Int
    public var resolvedInWindow:Int
    public var canResolve:Bool
    public var responseStatus:ResponseStatus

    required public init(){}
}

public class ResourceConflictDto : Codable
{
    public var id:String
    public var kind:String
    public var name:String
    public var severity:String
    public var summary:String
    public var bookings:[ResourceConflictBookingDto] = []
    public var options:[ResourceConflictOptionDto] = []

    required public init(){}
}

public class ResourceConflictBookingDto : Codable
{
    public var project:String
    public var job:String
    public var window:String
    public var tag:String
    public var hot:Bool

    required public init(){}
}

public class ResourceConflictOptionDto : Codable
{
    public var id:String
    public var label:String
    public var note:String
    public var clears:Bool
    public var recommended:Bool
    public var why:String
    public var actionJson:String

    required public init(){}
}


Swift ResourceConflictsRequest DTOs

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

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