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
import Foundation
import ServiceStack

public class BluebeamPreviewRequest : Codable
{
    public var projectID:Int

    required public init(){}
}

public class BluebeamPreviewResponse : Codable
{
    public var responseStatus:ResponseStatus
    public var fileName:String
    public var rowCount:Int
    public var columns:[String] = []
    public var rows:[BluebeamMappedRow] = []
    public var punchProposed:Int
    public var rfiProposed:Int
    public var quantityProposed:Int
    public var skipProposed:Int

    required public init(){}
}

public class BluebeamMappedRow : Codable
{
    public var rowNo:Int
    public var target:String
    public var title:String
    public var Description:String
    public var area:String
    public var trade:String
    public var assignedSub:String
    public var priority:String
    public var quantity:Double?
    public var quantityKind:String
    public var unit:String
    public var taskSeq:Int?
    public var reason:String
    public var source:BluebeamRow

    required public init(){}
}

public class BluebeamRow : Codable
{
    public var rowNo:Int
    public var subject:String
    public var pageLabel:String
    public var pageIndex:Int?
    public var author:String
    public var date:String
    public var status:String
    public var color:String
    public var comments:String
    public var label:String
    public var layer:String
    public var space:String
    public var length:Double?
    public var area:Double?
    public var count:Double?
    public var volume:Double?
    public var measurement:String
    public var x:Double?
    public var y:Double?
    public var width:Double?
    public var height:Double?
    public var extras:[String:String] = [:]

    required public init(){}
}


Swift 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}