| GET | /v1/forms/inbox-views |
|---|
import 'package:servicestack/servicestack.dart';
class FormInboxViewItem implements IConvertible
{
String? ViewUID;
String? FormUID;
String? Name;
String? FiltersJson;
FormInboxViewItem({this.ViewUID,this.FormUID,this.Name,this.FiltersJson});
FormInboxViewItem.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ViewUID = json['ViewUID'];
FormUID = json['FormUID'];
Name = json['Name'];
FiltersJson = json['FiltersJson'];
return this;
}
Map<String, dynamic> toJson() => {
'ViewUID': ViewUID,
'FormUID': FormUID,
'Name': Name,
'FiltersJson': FiltersJson
};
getTypeName() => "FormInboxViewItem";
TypeContext? context = _ctx;
}
class FormInboxViewsResponse implements IConvertible
{
List<FormInboxViewItem>? Views = [];
FormInboxViewItem? Saved;
ResponseStatus? ResponseStatus;
FormInboxViewsResponse({this.Views,this.Saved,this.ResponseStatus});
FormInboxViewsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Views = JsonConverters.fromJson(json['Views'],'List<FormInboxViewItem>',context!);
Saved = JsonConverters.fromJson(json['Saved'],'FormInboxViewItem',context!);
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Views': JsonConverters.toJson(Views,'List<FormInboxViewItem>',context!),
'Saved': JsonConverters.toJson(Saved,'FormInboxViewItem',context!),
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "FormInboxViewsResponse";
TypeContext? context = _ctx;
}
class FormInboxViewsRequest implements IConvertible
{
FormInboxViewsRequest();
FormInboxViewsRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "FormInboxViewsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'FormInboxViewItem': TypeInfo(TypeOf.Class, create:() => FormInboxViewItem()),
'FormInboxViewsResponse': TypeInfo(TypeOf.Class, create:() => FormInboxViewsResponse()),
'List<FormInboxViewItem>': TypeInfo(TypeOf.Class, create:() => <FormInboxViewItem>[]),
'FormInboxViewsRequest': TypeInfo(TypeOf.Class, create:() => FormInboxViewsRequest()),
});
Dart FormInboxViewsRequest 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.
GET /v1/forms/inbox-views HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Views:
[
{
ViewUID: 00000000000000000000000000000000,
FormUID: 00000000000000000000000000000000,
Name: String,
FiltersJson: String
}
],
Saved:
{
ViewUID: 00000000000000000000000000000000,
FormUID: 00000000000000000000000000000000,
Name: String,
FiltersJson: String
},
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}