Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Basically, for each resource type in in frevvo (User, Project, FormType, Schema) an Atom Feed representation is provided. The following table shows the different URI to access the different resource feeds:
frevvo Data API URLs
Resource Description | Resource URI |
---|---|
UserFeed | /frevvo/web/tn/{tenantId}/api/users |
UserEntry | /frevvo/web/tn/{tenantId}/api/user/{id} |
ProjectFeed | /frevvo/web/tn/{tenantId}/api/apps?ownerId={userId} |
ProjectEntry | /frevvo/web/tn/{tenantId}/api/app/{id} |
FormTypeFeed | /frevvo/web/tn/{tenantId}/api/formtypes?ownerId={appId} |
FormTypeEntry | /frevvo/web/tn/{tenantId}/api/formtype/{id} |
SchemaFeed | /frevvo/web/tn/{tenantId}/api/schemas?ownerId={appId} |
SchemaEntry | /frevvo/web/tn/{tenantId}/api/schema/{id} |
ControlTypeFeed | /frevvo/web/tn/{tenantId}/api/controltypes?ownerId={formTypeId} |
ControlTypeEntry | /frevvo/web/tn/{tenantId}/api/controltype/{id} |
SubmissionFeed | /frevvo/web/tn/{tenantId}/api/submissions |
SubmissionEntry | /frevvo/web/tn/{tenantId}/api/submission/{id} |
...
The user feed represents each user that is visible to the currently logged in user. For all non-administrator users, this feed will always show one user: the current user; for the administrator users it will show all the users in allowing frevvo allowing them to manage user settings.
...
In order to get a list of all visible users, send the following request to the Serverfrevvo Server:
Code Block |
---|
GET /frevvo/web/tn/{tenantId}/api/users |
...
In order to get a list of all styles, send the following request to the serverfrevvo server:
Code Block |
---|
GET /frevvo/web/tn/{tenantId}/api/themes |
...
The returned feed above shows two style entries named Clear and Blue Professional (the two global styles provided by default by the version the frevvo version when this example was created. currently frevvo currently offers additional Global Styles.
...
In order to get a list of all projects, send the following request to the serverfrevvo server:
Code Block |
---|
GET /frevvo/web/tn/{tenantId}/api/apps |
...
In order to get a list of all forms owned by the current user, send the following request to the serverfrevvo server:
Code Block |
---|
GET /frevvo/web/tn/{tenantId}/api/formtypes |
...
In order to get a list of all schemas, send the following request to the serverfrevvo server:
Code Block |
---|
GET /frevvo/web/tn/{tenantId}/api/schemas |
...
In order to get a list of all ControlType's owned by a given FormType, send the following request to the serverfrevvo server:
Code Block |
---|
GET /frevvo/web/tn/{tenantId}/api/controltypes?ownerId={formTypeId} |
...
In order to get a list of DocumentType's owned by a given FormType or Schema, send the following request to the serverfrevvo server:
Code Block |
---|
GET /frevvo/web/tn/{tenantId}/api/doctypes?ownerId={formTypeId} or GET /frevvo/web/tn/{tenantId}/api/doctypes?ownerId={SchemaId} |
...
DocumentType's cannot be created from scratch using the API. They are either created automatically by when frevvo when you design your forms or by uploading an XML Schema. They can, however, be added/removed to/from a FormType.
...