Add archive endpoint + scheduled job
Related issues
Acceptance criteria
-
Implemented code changes don't diverge from the related issue. -
Documentation reflects the status quo after merge. -
Version number is incremented according to SemVer. (Snapshot versions are not merged/released.) -
Only released versions of dependencies are used (i.e. no snapshot versions). -
Pipeline still works. -
GitLab issue is up-to-date.
If necessary, the following sections have been updated:
-
Swagger -
Readme.md -
Documentation
Proposed squash commit message
Add archive endpoint + scheduled job
* Add a patch endpoint to update the eCMR type.
* Update the ecmr data model dependency and add ecmrStatus to the entity.
* Add a scheduled job that moves finished eCMRs into the archive daily at 2 am UTC.