Trendsic Platform Service

<back to all web services

ProjectLocationListRequest

Requires Authentication
The following routes are available for this service:
GET/v1/projectlocation/byproject/{ProjectID}
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 ProjectLocation
            Public Overridable Property ProjectLocationID As Integer
            Public Overridable Property ProjectID As Integer
            Public Overridable Property Name As String
            Public Overridable Property Address1 As String
            Public Overridable Property Address2 As String
            Public Overridable Property City As String
            Public Overridable Property State As String
            Public Overridable Property Zip As String
            Public Overridable Property Latitude As Decimal?
            Public Overridable Property Longitude As Decimal?
            Public Overridable Property TotalArea As Decimal?
            Public Overridable Property AreaUnit As String
            Public Overridable Property AccessInstructions As String
            Public Overridable Property IsPrimary As Boolean
            Public Overridable Property DisplayOrder As Integer
            Public Overridable Property Active As Boolean
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
            Public Overridable Property Areas As List(Of ProjectLocationArea) = New List(Of ProjectLocationArea)
            Public Overridable Property Equipment As List(Of ProjectLocationEquipment) = New List(Of ProjectLocationEquipment)
            Public Overridable Property SiteDetails As List(Of ProjectLocationSiteDetail) = New List(Of ProjectLocationSiteDetail)
            Public Overridable Property Attachments As List(Of ProjectLocationAttachment) = New List(Of ProjectLocationAttachment)
        End Class

        Public Partial Class ProjectLocationArea
            Public Overridable Property ProjectLocationAreaID As Integer
            Public Overridable Property ProjectLocationID As Integer
            Public Overridable Property Name As String
            Public Overridable Property Measurement As Decimal?
            Public Overridable Property MeasurementUnit As String
            Public Overridable Property Notes As String
            Public Overridable Property DisplayOrder As Integer
            Public Overridable Property Active As Boolean
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
        End Class

        Public Partial Class ProjectLocationAttachment
            Public Overridable Property ProjectLocationAttachmentID As Integer
            Public Overridable Property ProjectLocationID As Integer
            Public Overridable Property ProjectLocationAreaID As Integer?
            Public Overridable Property Kind As String
            Public Overridable Property DocTitle As String
            Public Overridable Property FileName As String
            Public Overridable Property Url As String
            Public Overridable Property MimeType As String
            Public Overridable Property UploadDate As Date?
            Public Overridable Property UploadedBy As String
            Public Overridable Property Active As Boolean
        End Class

        Public Partial Class ProjectLocationEquipment
            Public Overridable Property ProjectLocationEquipmentID As Integer
            Public Overridable Property ProjectLocationID As Integer
            Public Overridable Property Name As String
            Public Overridable Property Description As String
            Public Overridable Property Manufacturer As String
            Public Overridable Property Model As String
            Public Overridable Property SerialNumber As String
            Public Overridable Property AssetTag As String
            Public Overridable Property Notes As String
            Public Overridable Property Active As Boolean
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
        End Class

        Public Partial Class ProjectLocationListRequest
            Public Overridable Property ProjectID As Integer
        End Class

        Public Partial Class ProjectLocationResponse
            Public Overridable Property Locations As List(Of ProjectLocation) = New List(Of ProjectLocation)
            Public Overridable Property Areas As List(Of ProjectLocationArea) = New List(Of ProjectLocationArea)
            Public Overridable Property Equipment As List(Of ProjectLocationEquipment) = New List(Of ProjectLocationEquipment)
            Public Overridable Property SiteDetails As List(Of ProjectLocationSiteDetail) = New List(Of ProjectLocationSiteDetail)
            Public Overridable Property Attachments As List(Of ProjectLocationAttachment) = New List(Of ProjectLocationAttachment)
            Public Overridable Property SiteDetail As ProjectLocationSiteDetail
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class ProjectLocationSiteDetail
            Public Overridable Property ProjectLocationSiteDetailID As Integer
            Public Overridable Property ProjectLocationID As Integer
            Public Overridable Property DetailType As String
            Public Overridable Property Label As String
            Public Overridable Property Value As String
            Public Overridable Property IsSensitive As Boolean
            Public Overridable Property EncVersion As Integer
            Public Overridable Property HasValue As Boolean
            Public Overridable Property Notes As String
            Public Overridable Property DisplayOrder As Integer
            Public Overridable Property Active As Boolean
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
        End Class
    End Namespace
End Namespace

VB.NET ProjectLocationListRequest 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/projectlocation/byproject/{ProjectID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Locations":[{"ProjectLocationID":0,"ProjectID":0,"Name":"String","Address1":"String","Address2":"String","City":"String","State":"String","Zip":"String","Latitude":0,"Longitude":0,"TotalArea":0,"AreaUnit":"String","AccessInstructions":"String","IsPrimary":false,"DisplayOrder":0,"Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","Areas":[{"ProjectLocationAreaID":0,"ProjectLocationID":0,"Name":"String","Measurement":0,"MeasurementUnit":"String","Notes":"String","DisplayOrder":0,"Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Equipment":[{"ProjectLocationEquipmentID":0,"ProjectLocationID":0,"Name":"String","Description":"String","Manufacturer":"String","Model":"String","SerialNumber":"String","AssetTag":"String","Notes":"String","Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"SiteDetails":[{"ProjectLocationSiteDetailID":0,"ProjectLocationID":0,"DetailType":"String","Label":"String","Value":"String","IsSensitive":false,"EncVersion":0,"HasValue":false,"Notes":"String","DisplayOrder":0,"Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Attachments":[{"ProjectLocationAttachmentID":0,"ProjectLocationID":0,"ProjectLocationAreaID":0,"Kind":"String","DocTitle":"String","FileName":"String","Url":"String","MimeType":"String","UploadDate":"0001-01-01T00:00:00.0000000","UploadedBy":"String","Active":false}]}],"Areas":[{"ProjectLocationAreaID":0,"ProjectLocationID":0,"Name":"String","Measurement":0,"MeasurementUnit":"String","Notes":"String","DisplayOrder":0,"Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Equipment":[{"ProjectLocationEquipmentID":0,"ProjectLocationID":0,"Name":"String","Description":"String","Manufacturer":"String","Model":"String","SerialNumber":"String","AssetTag":"String","Notes":"String","Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"SiteDetails":[{"ProjectLocationSiteDetailID":0,"ProjectLocationID":0,"DetailType":"String","Label":"String","Value":"String","IsSensitive":false,"EncVersion":0,"HasValue":false,"Notes":"String","DisplayOrder":0,"Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Attachments":[{"ProjectLocationAttachmentID":0,"ProjectLocationID":0,"ProjectLocationAreaID":0,"Kind":"String","DocTitle":"String","FileName":"String","Url":"String","MimeType":"String","UploadDate":"0001-01-01T00:00:00.0000000","UploadedBy":"String","Active":false}],"SiteDetail":{"ProjectLocationSiteDetailID":0,"ProjectLocationID":0,"DetailType":"String","Label":"String","Value":"String","IsSensitive":false,"EncVersion":0,"HasValue":false,"Notes":"String","DisplayOrder":0,"Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}