Trendsic Platform Service

<back to all web services

PunchListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/punch
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class PunchListRequest
{
    open var ProjectID:Int? = null
}

open class PunchListResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var ProjectID:Int? = null
    open var Items:ArrayList<PunchItem> = ArrayList<PunchItem>()
    open var Summary:PunchSummary? = null
}

open class PunchItem
{
    open var PunchItemID:Int? = null
    open var PunchItemUID:UUID? = null
    open var ProjectID:Int? = null
    open var PunchNo:String? = null
    open var Title:String? = null
    open var Description:String? = null
    open var Area:String? = null
    open var Trade:String? = null
    open var Status:String? = null
    open var Priority:String? = null
    open var AssignedSub:String? = null
    open var AssignedTo:String? = null
    open var AssignedSubContactID:Int? = null
    open var PhotoCount:Int? = null
    open var OriginType:String? = null
    open var OriginRef:String? = null
    open var OpenedAt:Date? = null
    open var VerifiedAt:Date? = null
    open var ClosedAt:Date? = null
    open var CreatedBy:String? = null
    open var CreatedAt:Date? = null
    open var UpdatedAt:Date? = null
}

open class PunchSummary
{
    open var ProjectID:Int? = null
    open var TotalItems:Int? = null
    open var OpenCount:Int? = null
    open var VerifyCount:Int? = null
    open var ClosedCount:Int? = null
    open var RejectedCount:Int? = null
    open var PercentComplete:Int? = null
}

Kotlin PunchListRequest 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/projects/{ProjectID}/punch 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
		}
	},
	ProjectID: 0,
	Items: 
	[
		{
			PunchItemID: 0,
			PunchItemUID: 00000000000000000000000000000000,
			ProjectID: 0,
			PunchNo: String,
			Title: String,
			Description: String,
			Area: String,
			Trade: String,
			Status: String,
			Priority: String,
			AssignedSub: String,
			AssignedTo: String,
			AssignedSubContactID: 0,
			PhotoCount: 0,
			OriginType: String,
			OriginRef: String,
			OpenedAt: 0001-01-01,
			VerifiedAt: 0001-01-01,
			ClosedAt: 0001-01-01,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01
		}
	],
	Summary: 
	{
		ProjectID: 0,
		TotalItems: 0,
		OpenCount: 0,
		VerifyCount: 0,
		ClosedCount: 0,
		RejectedCount: 0,
		PercentComplete: 0
	}
}