| POST | /v1/forms/submissions/{SubmissionUID}/reveal/{FieldKey} |
|---|
import 'package:servicestack/servicestack.dart';
class FormSubmissionRevealResponse implements IConvertible
{
String? Value;
ResponseStatus? ResponseStatus;
FormSubmissionRevealResponse({this.Value,this.ResponseStatus});
FormSubmissionRevealResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Value = json['Value'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Value': Value,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "FormSubmissionRevealResponse";
TypeContext? context = _ctx;
}
class FormSubmissionRevealRequest implements IConvertible
{
String? SubmissionUID;
String? FieldKey;
FormSubmissionRevealRequest({this.SubmissionUID,this.FieldKey});
FormSubmissionRevealRequest.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() => "FormSubmissionRevealRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'FormSubmissionRevealResponse': TypeInfo(TypeOf.Class, create:() => FormSubmissionRevealResponse()),
'FormSubmissionRevealRequest': TypeInfo(TypeOf.Class, create:() => FormSubmissionRevealRequest()),
});
Dart FormSubmissionRevealRequest DTOs
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}/reveal/{FieldKey} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
SubmissionUID: 00000000000000000000000000000000,
FieldKey: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Value: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}