Trendsic Platform Service

<back to all web services

FormSignHereRequest

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

class FormSignHereResponse implements IConvertible
{
    bool? Arrived;
    int? Pending;
    ResponseStatus? ResponseStatus;

    FormSignHereResponse({this.Arrived,this.Pending,this.ResponseStatus});
    FormSignHereResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class FormSignHereRequest implements IConvertible
{
    String? SubmissionUID;
    String? FieldKey;
    String? Mode;
    String? Name;
    String? Png;

    FormSignHereRequest({this.SubmissionUID,this.FieldKey,this.Mode,this.Name,this.Png});
    FormSignHereRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

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

Dart FormSignHereRequest 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/submissions/{SubmissionUID}/sign/{FieldKey} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

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

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