aboutsummaryrefslogtreecommitdiffstats
path: root/test_status.sh
AgeCommit message (Collapse)AuthorFilesLines
12 daysfeat: upload documents to paperless-ngx from the CLIDanilo M.1-0/+23
Single bash script over the paperless REST API. Posts each file to /api/documents/post_document/, then polls /api/tasks/ until the document is consumed, so each file gets a real outcome instead of a task id. The task response needed care: it is a paginated object rather than a bare list, statuses are lowercase, and the outcome lives in result_data as a dict, carrying duplicate_of when paperless rejects re-uploaded content. test_status.sh covers those shapes. Token is read from pass, never passed as an argument. Host, pass entry and timeout are environment-overridable. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>