Actions
Feature #7746
closedRest API Import
Start date:
25.01.2019
Due date:
22.02.2019
% Done:
0%
Estimated time:
Discuss:
Prio Planung:
Vote:
Description
Using Forms to import any data¶
Why¶
Forms already check data and have mechanism to insert further things after save or check the existence of other records before save.
If it uses the same form as the user, there is also a good chance that the import mechanism won't get out of date.
How¶
- Using QFQ Element
- Defines Form to be used
- Defines REST API URL to be used (can be generated with SQL, if we want to trigger multiple API request in succession)
- Defines which JSON Element has to be input into which Form Element
- Does use the same API as the Javascript Client uses to pass data for save
- Prints error message and cancels if one entry can't be imported
- Option for force continue
- Logs errors
What¶
- Calls a REST API
- Receives and handles JSON according to FormElement Mapping
- Uses existing QFQ Code
Actions