Trendsic Platform Service

<back to all web services

FormOfficeRevealRequest

Requires Authentication
The following routes are available for this service:
POST/v1/forms/office/drafts/{SubmissionUID}/reveal/{FieldKey}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class FormRowsRevealResponse implements IConvertible
{
    String? RowsJson;
    String? Value;
    ResponseStatus? ResponseStatus;

    FormRowsRevealResponse({this.RowsJson,this.Value,this.ResponseStatus});
    FormRowsRevealResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class FormOfficeRevealRequest implements IConvertible
{
    String? SubmissionUID;
    String? FieldKey;

    FormOfficeRevealRequest({this.SubmissionUID,this.FieldKey});
    FormOfficeRevealRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        SubmissionUID = json['SubmissionUID'];
        FieldKey = json['FieldKey'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'SubmissionUID': SubmissionUID,
        'FieldKey': FieldKey
    };

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

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

Dart FormOfficeRevealRequest DTOs

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

HTTP + CSV

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

POST /v1/forms/office/drafts/{SubmissionUID}/reveal/{FieldKey} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"SubmissionUID":"00000000000000000000000000000000","FieldKey":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"RowsJson":"String","Value":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}