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