Trendsic Platform Service

<back to all web services

PmResourcesRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/pm/resources
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class PmResourcesRequest
{
    open var Days:Int? = null
}

open class PmResourcesResponse
{
    open var FromDate:String? = null
    open var ToDate:String? = null
    open var OverbookedCount:Int? = null
    open var CommittedCount:Int? = null
    open var ShortfallCount:Int? = null
    open var Equipment:ArrayList<PmResEquipment> = ArrayList<PmResEquipment>()
    open var Materials:ArrayList<PmResMaterial> = ArrayList<PmResMaterial>()
    open var ResponseStatus:ResponseStatus? = null
}

open class PmResEquipment
{
    open var EquipmentID:Int? = null
    open var Name:String? = null
    open var EquipmentType:String? = null
    open var SerialNumber:String? = null
    open var JobCount:Int? = null
    open var Overbooked:Boolean? = null
    open var MaintenanceState:String? = null
    open var Commitments:ArrayList<PmResCommitment> = ArrayList<PmResCommitment>()
}

open class PmResCommitment
{
    open var ProjectName:String? = null
    open var JobName:String? = null
    open var StartDate:String? = null
    open var EndDate:String? = null
}

open class PmResMaterial
{
    open var MaterialID:Int? = null
    open var Name:String? = null
    open var MaterialType:String? = null
    open var OnHand:Int? = null
    open var NeededByJobs:Int? = null
    open var QtyNeeded:Int? = null
    open var Shortfall:Boolean? = null
}

Kotlin PmResourcesRequest 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/pm/resources HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	}
}