Skip to content

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