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
CorpusExport
withstate=running
is available for that corpus - check that no
CorpusExport
withstate=available
is available for that corpus on the last 6 hours - create a new
CorpusExport
instance assigned to that user
Edited by Bastien Abadie