Trendsic Platform Service

<back to all web services

EstimateAssembliesRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/Rfp/{RfpDocumentUID}/Estimate/Assemblies

export class AppliedAssembly
{
    public TaskSeq: number;
    public TemplateUID?: string;
    public TemplateName: string;
    public AppliedBy: string;
    public AppliedAt?: string;

    public constructor(init?: Partial<AppliedAssembly>) { (Object as any).assign(this, init); }
}

export class AssemblyOption
{
    public TemplateUID: string;
    public Name: string;
    public Unit: string;
    public Pack: string;
    public IsGlobal: boolean;
    public Summary: string;

    public constructor(init?: Partial<AssemblyOption>) { (Object as any).assign(this, init); }
}

export class EstimateAssembliesResponse
{
    public ResponseStatus: ResponseStatus;
    public Applied: AppliedAssembly[] = [];
    public Available: AssemblyOption[] = [];

    public constructor(init?: Partial<EstimateAssembliesResponse>) { (Object as any).assign(this, init); }
}

export class EstimateAssembliesRequest
{
    public RfpDocumentUID: string;

    public constructor(init?: Partial<EstimateAssembliesRequest>) { (Object as any).assign(this, init); }
}

TypeScript EstimateAssembliesRequest 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/Rfp/{RfpDocumentUID}/Estimate/Assemblies 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
		}
	},
	Applied: 
	[
		{
			TaskSeq: 0,
			TemplateUID: 00000000000000000000000000000000,
			TemplateName: String,
			AppliedBy: String,
			AppliedAt: 0001-01-01
		}
	],
	Available: 
	[
		{
			TemplateUID: 00000000000000000000000000000000,
			Name: String,
			Unit: String,
			Pack: String,
			IsGlobal: False,
			Summary: String
		}
	]
}