| 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()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
Content-Length: length
{
SubmissionUID: 00000000000000000000000000000000,
FieldKey: String,
Mode: String,
Name: String,
Png: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}
}
}