Add endpoint to trigger an export
Depends on #764 (closed)
The endpoint StartExport should simply trigger the task created in #743 (closed) and immediately return.
The task must be assigned to the currently logged user.
Only users with contributor or admin access can trigger an export.
Database rules:
- check that no
CorpusExportwithstate=runningis available for that corpus - check that no
CorpusExportwithstate=availableis available for that corpus on the last 6 hours - create a new
CorpusExportinstance assigned to that user
Edited by Bastien Abadie