paperless/tests
2023-05-13 17:05:31 +02:00
..
README.md fix typo 2023-03-30 08:29:07 +02:00
test-api.sh add various test shell scripts 2023-01-20 15:21:01 +01:00
test-autocomplete.sh add various test shell scripts 2023-01-20 15:21:01 +01:00
test-correspondents.sh add more tests 2023-03-15 18:14:57 +01:00
test-delete-saved-views.sh add various test shell scripts 2023-01-20 15:21:01 +01:00
test-delete.sh add various test shell scripts 2023-01-20 15:21:01 +01:00
test-document-download.sh add various test shell scripts 2023-01-20 15:21:01 +01:00
test-document-metadata.sh add various test shell scripts 2023-01-20 15:21:01 +01:00
test-document-thumb.sh add various test shell scripts 2023-01-20 15:21:01 +01:00
test-documents-like.sh add more tests 2023-03-15 18:14:57 +01:00
test-documents.sh add more tests 2023-03-15 18:14:57 +01:00
test-documenttypes.sh add more tests 2023-03-15 18:14:57 +01:00
test-post-saved-view.sh add various test shell scripts 2023-01-20 15:21:01 +01:00
test-saved-views.sh add various test shell scripts 2023-01-20 15:21:01 +01:00
test-statstotal.sh add various test shell scripts 2023-01-20 15:21:01 +01:00
test-tags.sh add various test shell scripts 2023-01-20 15:21:01 +01:00
test-token.sh login and password can be passed as command line parameters 2023-05-13 17:05:31 +02:00
test-upload.sh add various test shell scripts 2023-01-20 15:21:01 +01:00

Testing the API

These scripts can be used to test almost all endpoints of the paperless-ngx API.

In order to use them, create a file credentials and define AUTH and URL in it. URL is the base url of the restapi service. AUTH are the credentials passed in the http header Authorization. It can be a basic authentication, a paperless token or a regular SeedDMS key.

Example:

URL="http://my.seeddms.org/restapi/index.php"
AUTH="my seeddms api key"
#AUTH="Token <paperless token>"
#AUTH="Basic <credentials>"