mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-24 18:23:37 +00:00
Update readme with new API additions
This commit is contained in:
parent
13f4ec6b18
commit
ec8743b0cc
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
@ -518,6 +518,16 @@ A secure API key can be generated by any password generator.
|
|||
|
||||
Optionally, the `force` query parameter can be passed with a value of `true` in order to make
|
||||
pict-rs spawn another task if the current one seems stuck.
|
||||
- `POST /internal/prune_missing?force={force}` Spawn a background task that will check every hash in
|
||||
the database for an associated media file, deleting any record that is missing its media.
|
||||
|
||||
WARNING: This operation is very destructive. Please take backups before invoking it.
|
||||
|
||||
This endpoint can be hit repeatedly to check the progress of the preparations. The returned
|
||||
`progress` value represents how many records have been marked for pruning.
|
||||
|
||||
Optionally, the `force` query parameter can be passed with a value of `true` in order to make
|
||||
pict-rs spawn another task if the current one seems stuck.
|
||||
|
||||
|
||||
Additionally, all endpoints support setting deadlines, after which the request will cease
|
||||
|
|
Loading…
Reference in a new issue