2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-25 03:51:24 +00:00

Update readme with new API additions

This commit is contained in:
asonix 2023-12-11 14:34:58 -06:00
parent 13f4ec6b18
commit ec8743b0cc

View file

@ -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