mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 02:48:26 +00:00
Extend consumedir.sh to work with integration endpoint
Now running one consumedir script can upload files to multiple collectives separately.
This commit is contained in:
@ -112,8 +112,15 @@ the [configuration file](configure#rest-server).
|
||||
If queried by a `GET` request, it returns whether it is enabled and
|
||||
the collective exists.
|
||||
|
||||
See the [SMTP gateway](tools/smtpgateway) for an example to use this
|
||||
endpoint.
|
||||
It is also possible to check for existing files using their sha256
|
||||
checksum with:
|
||||
|
||||
```
|
||||
/api/v1/open/integration/checkfile/[collective-name]/[sha256-checksum]
|
||||
```
|
||||
|
||||
See the [SMTP gateway](tools/smtpgateway) or the [consumedir
|
||||
script](tools/consumedir) for examples to use this endpoint.
|
||||
|
||||
## The Request
|
||||
|
||||
|
Reference in New Issue
Block a user