Trendsic Platform Service

<back to all web services

EstimatingPolicyGetRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/estimating/policy
import 'package:servicestack/servicestack.dart';

class EstimatingPolicyResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    bool? HonorSourceStatus;

    EstimatingPolicyResponse({this.ResponseStatus,this.HonorSourceStatus});
    EstimatingPolicyResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        HonorSourceStatus = json['HonorSourceStatus'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'HonorSourceStatus': HonorSourceStatus
    };

    getTypeName() => "EstimatingPolicyResponse";
    TypeContext? context = _ctx;
}

class EstimatingPolicyGetRequest implements IConvertible
{
    EstimatingPolicyGetRequest();
    EstimatingPolicyGetRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "EstimatingPolicyGetRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'EstimatingPolicyResponse': TypeInfo(TypeOf.Class, create:() => EstimatingPolicyResponse()),
    'EstimatingPolicyGetRequest': TypeInfo(TypeOf.Class, create:() => EstimatingPolicyGetRequest()),
});

Dart EstimatingPolicyGetRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/estimating/policy HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"HonorSourceStatus":false}