Trendsic Platform Service

<back to all web services

BluebeamPreviewRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/projects/{ProjectID}/bluebeam/import/preview
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 BluebeamMappedRow
            Public Overridable Property RowNo As Integer
            Public Overridable Property Target As String
            Public Overridable Property Title As String
            Public Overridable Property Description As String
            Public Overridable Property Area As String
            Public Overridable Property Trade As String
            Public Overridable Property AssignedSub As String
            Public Overridable Property Priority As String
            Public Overridable Property Quantity As Double?
            Public Overridable Property QuantityKind As String
            Public Overridable Property Unit As String
            Public Overridable Property TaskSeq As Integer?
            Public Overridable Property Reason As String
            Public Overridable Property Source As BluebeamRow
        End Class

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

        Public Partial Class BluebeamPreviewResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property FileName As String
            Public Overridable Property RowCount As Integer
            Public Overridable Property Columns As List(Of String) = New List(Of String)
            Public Overridable Property Rows As List(Of BluebeamMappedRow) = New List(Of BluebeamMappedRow)
            Public Overridable Property PunchProposed As Integer
            Public Overridable Property RfiProposed As Integer
            Public Overridable Property QuantityProposed As Integer
            Public Overridable Property SkipProposed As Integer
        End Class

        Public Partial Class BluebeamRow
            Public Overridable Property RowNo As Integer
            Public Overridable Property Subject As String
            Public Overridable Property PageLabel As String
            Public Overridable Property PageIndex As Integer?
            Public Overridable Property Author As String
            Public Overridable Property [Date] As String
            Public Overridable Property Status As String
            Public Overridable Property Color As String
            Public Overridable Property Comments As String
            Public Overridable Property Label As String
            Public Overridable Property Layer As String
            Public Overridable Property Space As String
            Public Overridable Property Length As Double?
            Public Overridable Property Area As Double?
            Public Overridable Property Count As Double?
            Public Overridable Property Volume As Double?
            Public Overridable Property Measurement As String
            Public Overridable Property X As Double?
            Public Overridable Property Y As Double?
            Public Overridable Property Width As Double?
            Public Overridable Property Height As Double?
            Public Overridable Property Extras As Dictionary(Of String, String) = New Dictionary(Of String, String)
        End Class
    End Namespace
End Namespace

VB.NET BluebeamPreviewRequest 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.

POST /v1/projects/{ProjectID}/bluebeam/import/preview HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ProjectID":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"FileName":"String","RowCount":0,"Columns":["String"],"Rows":[{"RowNo":0,"Target":"String","Title":"String","Description":"String","Area":"String","Trade":"String","AssignedSub":"String","Priority":"String","Quantity":0,"QuantityKind":"String","Unit":"String","TaskSeq":0,"Reason":"String","Source":{"RowNo":0,"Subject":"String","PageLabel":"String","PageIndex":0,"Author":"String","Date":"String","Status":"String","Color":"String","Comments":"String","Label":"String","Layer":"String","Space":"String","Length":0,"Area":0,"Count":0,"Volume":0,"Measurement":"String","X":0,"Y":0,"Width":0,"Height":0,"Extras":{"String":"String"}}}],"PunchProposed":0,"RfiProposed":0,"QuantityProposed":0,"SkipProposed":0}