| POST | /v1/forms/submissions/{SubmissionUID}/full |
|---|
import 'package:servicestack/servicestack.dart';
class FormSubmissionFullResponse implements IConvertible
{
Map<String,String?>? Values = {};
ResponseStatus? ResponseStatus;
FormSubmissionFullResponse({this.Values,this.ResponseStatus});
FormSubmissionFullResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Values = JsonConverters.toStringMap(json['Values']);
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Values': Values,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "FormSubmissionFullResponse";
TypeContext? context = _ctx;
}
class FormSubmissionFullRequest implements IConvertible
{
String? SubmissionUID;
FormSubmissionFullRequest({this.SubmissionUID});
FormSubmissionFullRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
SubmissionUID = json['SubmissionUID'];
return this;
}
Map<String, dynamic> toJson() => {
'SubmissionUID': SubmissionUID
};
getTypeName() => "FormSubmissionFullRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'FormSubmissionFullResponse': TypeInfo(TypeOf.Class, create:() => FormSubmissionFullResponse()),
'FormSubmissionFullRequest': TypeInfo(TypeOf.Class, create:() => FormSubmissionFullRequest()),
});
Dart FormSubmissionFullRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/forms/submissions/{SubmissionUID}/full HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"SubmissionUID":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Values":{"String":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}