Trendsic Platform Service

<back to all web services

CadRenderStatusRequest

Requires Authentication
Requires any of the roles:Worker, Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/cad/{AttachmentId}/render/status
import Foundation
import ServiceStack

public class CadRenderStatusRequest : Codable
{
    public var attachmentId:String
    public var versionNo:Int?

    required public init(){}
}

public class CadRenderResponse : Codable
{
    public var responseStatus:ResponseStatus
    public var derivative:CadDerivative

    required public init(){}
}

public class CadDerivative : Codable
{
    public var cadDerivativeID:Int
    public var attachmentId:String
    public var versionNo:Int
    public var urn:String
    public var objectKey:String
    public var status:String
    public var progress:Int
    public var stageLabel:String
    public var has2d:Bool
    public var has3d:Bool
    public var hasPdf:Bool
    public var thumbKey:String
    public var thumbUrl:String
    public var pdfAttachmentId:String?
    public var errorText:String
    public var requestedBy:String
    public var requestedAt:Date?
    public var finishedAt:Date?
    public var ageSeconds:Int

    required public init(){}
}


Swift CadRenderStatusRequest 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/cad/{AttachmentId}/render/status 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
		}
	},
	Derivative: 
	{
		CadDerivativeID: 0,
		AttachmentId: 00000000000000000000000000000000,
		VersionNo: 0,
		Urn: String,
		ObjectKey: String,
		Status: String,
		Progress: 0,
		StageLabel: String,
		Has2d: False,
		Has3d: False,
		HasPdf: False,
		ThumbKey: String,
		ThumbUrl: String,
		PdfAttachmentId: 00000000000000000000000000000000,
		ErrorText: String,
		RequestedBy: String,
		RequestedAt: 0001-01-01,
		FinishedAt: 0001-01-01,
		AgeSeconds: 0
	}
}