| POST | /v1/formfill/draft/{Token}/link |
|---|
import 'package:servicestack/servicestack.dart';
class FormFillLinkResponse implements IConvertible
{
String? Outcome;
String? To;
int? RemindDays;
ResponseStatus? ResponseStatus;
FormFillLinkResponse({this.Outcome,this.To,this.RemindDays,this.ResponseStatus});
FormFillLinkResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Outcome = json['Outcome'];
To = json['To'];
RemindDays = json['RemindDays'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Outcome': Outcome,
'To': To,
'RemindDays': RemindDays,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "FormFillLinkResponse";
TypeContext? context = _ctx;
}
class FormFillLinkRequest implements IConvertible
{
String? Token;
String? How;
FormFillLinkRequest({this.Token,this.How});
FormFillLinkRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Token = json['Token'];
How = json['How'];
return this;
}
Map<String, dynamic> toJson() => {
'Token': Token,
'How': How
};
getTypeName() => "FormFillLinkRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'FormFillLinkResponse': TypeInfo(TypeOf.Class, create:() => FormFillLinkResponse()),
'FormFillLinkRequest': TypeInfo(TypeOf.Class, create:() => FormFillLinkRequest()),
});
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/formfill/draft/{Token}/link HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Token: String,
How: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Outcome: String,
To: String,
RemindDays: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}