Trendsic Platform Service

<back to all web services

FormFillApptRequest

The following routes are available for this service:
GET/v1/formfill/appt/{Token}
import 'package:servicestack/servicestack.dart';

class FormFillApptResponse implements IConvertible
{
    String? State;
    String? FormName;
    String? Message;
    String? StatusUrl;
    bool? More;
    String? Token;
    String? AppJson;
    String? TenantName;
    String? Today;
    String? AnswersJson;
    int? Page;
    int? Rev;
    String? Lang;
    ResponseStatus? ResponseStatus;

    FormFillApptResponse({this.State,this.FormName,this.Message,this.StatusUrl,this.More,this.Token,this.AppJson,this.TenantName,this.Today,this.AnswersJson,this.Page,this.Rev,this.Lang,this.ResponseStatus});
    FormFillApptResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        State = json['State'];
        FormName = json['FormName'];
        Message = json['Message'];
        StatusUrl = json['StatusUrl'];
        More = json['More'];
        Token = json['Token'];
        AppJson = json['AppJson'];
        TenantName = json['TenantName'];
        Today = json['Today'];
        AnswersJson = json['AnswersJson'];
        Page = json['Page'];
        Rev = json['Rev'];
        Lang = json['Lang'];
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'State': State,
        'FormName': FormName,
        'Message': Message,
        'StatusUrl': StatusUrl,
        'More': More,
        'Token': Token,
        'AppJson': AppJson,
        'TenantName': TenantName,
        'Today': Today,
        'AnswersJson': AnswersJson,
        'Page': Page,
        'Rev': Rev,
        'Lang': Lang,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "FormFillApptResponse";
    TypeContext? context = _ctx;
}

class FormFillApptRequest implements IConvertible
{
    String? Token;

    FormFillApptRequest({this.Token});
    FormFillApptRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Token = json['Token'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Token': Token
    };

    getTypeName() => "FormFillApptRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'FormFillApptResponse': TypeInfo(TypeOf.Class, create:() => FormFillApptResponse()),
    'FormFillApptRequest': TypeInfo(TypeOf.Class, create:() => FormFillApptRequest()),
});

Dart FormFillApptRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/formfill/appt/{Token} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	State: String,
	FormName: String,
	Message: String,
	StatusUrl: String,
	More: False,
	Token: String,
	AppJson: String,
	TenantName: String,
	Today: String,
	AnswersJson: String,
	Page: 0,
	Rev: 0,
	Lang: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}