Trendsic Platform Service

<back to all web services

PmResourcesRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/pm/resources
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;

namespace CRM.AgencyPlatform.API.Internal
{
    public partial class PmResCommitment
    {
        public virtual string ProjectName { get; set; }
        public virtual string JobName { get; set; }
        public virtual string StartDate { get; set; }
        public virtual string EndDate { get; set; }
    }

    public partial class PmResEquipment
    {
        public virtual int EquipmentID { get; set; }
        public virtual string Name { get; set; }
        public virtual string EquipmentType { get; set; }
        public virtual string SerialNumber { get; set; }
        public virtual int JobCount { get; set; }
        public virtual bool Overbooked { get; set; }
        public virtual string MaintenanceState { get; set; }
        public virtual List<PmResCommitment> Commitments { get; set; } = [];
    }

    public partial class PmResMaterial
    {
        public virtual int MaterialID { get; set; }
        public virtual string Name { get; set; }
        public virtual string MaterialType { get; set; }
        public virtual int OnHand { get; set; }
        public virtual int NeededByJobs { get; set; }
        public virtual int QtyNeeded { get; set; }
        public virtual bool Shortfall { get; set; }
    }

    public partial class PmResourcesRequest
    {
        public virtual int Days { get; set; }
    }

    public partial class PmResourcesResponse
    {
        public virtual string FromDate { get; set; }
        public virtual string ToDate { get; set; }
        public virtual int OverbookedCount { get; set; }
        public virtual int CommittedCount { get; set; }
        public virtual int ShortfallCount { get; set; }
        public virtual List<PmResEquipment> Equipment { get; set; } = [];
        public virtual List<PmResMaterial> Materials { get; set; } = [];
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

C# PmResourcesRequest 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/pm/resources HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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"}}}