Project

General

Profile

Actions

Feature #7746

closed

Rest API Import

Added by Benjamin Baer over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Carsten Rose
Target version:
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 #1

Updated by Benjamin Baer over 5 years ago

  • Due date set to 29.01.2019
  • Assignee set to Carsten Rose
  • Target version set to 146
Actions #2

Updated by Carsten Rose over 5 years ago

  • Tracker changed from Support to Feature
Actions #3

Updated by Carsten Rose over 5 years ago

  • Due date changed from 29.01.2019 to 22.02.2019
Actions #4

Updated by Carsten Rose over 5 years ago

  • Subject changed from QFQ: Rest API Import ueber Form to Rest API Import
Actions #5

Updated by Carsten Rose over 5 years ago

  • Status changed from New to In Progress
Actions #6

Updated by Carsten Rose over 5 years ago

  • Status changed from In Progress to Closed
Actions #7

Updated by Carsten Rose over 5 years ago

  • Target version changed from 146 to 19.2.3
Actions

Also available in: Atom PDF