Trendsic Platform Service

<back to all web services

AvailabilityListRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/Rfp/Availability
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 AvailabilityListRequest
        End Class

        Public Partial Class AvailabilityListResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Rows As List(Of AvailabilityRowView) = New List(Of AvailabilityRowView)
            Public Overridable Property EquipmentNames As List(Of String) = New List(Of String)
            Public Overridable Property CrewRoles As List(Of String) = New List(Of String)
            Public Overridable Property Summary As AvailabilityRefreshSummary
        End Class

        Public Partial Class AvailabilityRefreshSummary
            Public Overridable Property Derived As Integer
            Public Overridable Property DeactivatedStale As Integer
            Public Overridable Property SkippedManualPrecedence As Integer
            Public Overridable Property SkippedNoRentalSource As Integer
            Public Overridable Property SkippedNoDayRate As Integer
            Public Overridable Property Notes As List(Of String) = New List(Of String)
        End Class

        Public Partial Class AvailabilityRowView
            Public Overridable Property ResourceAvailabilityID As Integer
            Public Overridable Property ResourceType As String
            Public Overridable Property Label As String
            Public Overridable Property EquipmentName As String
            Public Overridable Property RolesCsv As String
            Public Overridable Property InternalRate As Decimal?
            Public Overridable Property RentalRate As Decimal?
            Public Overridable Property PremiumPerHour As Decimal?
            Public Overridable Property AvailableFrom As Date
            Public Overridable Property FreedFromProjectLabel As String
            Public Overridable Property Source As String
        End Class
    End Namespace
End Namespace

VB.NET AvailabilityListRequest 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/Rfp/Availability HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Rows: 
	[
		{
			ResourceAvailabilityID: 0,
			ResourceType: String,
			Label: String,
			EquipmentName: String,
			RolesCsv: String,
			InternalRate: 0,
			RentalRate: 0,
			PremiumPerHour: 0,
			AvailableFrom: 0001-01-01,
			FreedFromProjectLabel: String,
			Source: String
		}
	],
	EquipmentNames: 
	[
		String
	],
	CrewRoles: 
	[
		String
	],
	Summary: 
	{
		Derived: 0,
		DeactivatedStale: 0,
		SkippedManualPrecedence: 0,
		SkippedNoRentalSource: 0,
		SkippedNoDayRate: 0,
		Notes: 
		[
			String
		]
	}
}