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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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"}}}