Expand description
Paperless-ngx API client
§API Details
OpenAPI Spec for Paperless-ngx
§Client Details
The documentation for the crate is generated along with the code to make this library easy to use.
To install the library, add the following to your Cargo.toml file.
[dependencies]
paperless-api-client = "6.0.0"§Basic example
Typical use will require intializing a Client. This requires
a user agent string and set of credentials.
use paperless_api_client::Client;
let client = Client::new(
String::from("api-key"),
);Alternatively, the library can search for most of the variables required for the client in the environment:
PAPERLESS_API_CLIENT_API_TOKEN
And then you can create a client from the environment.
use paperless_api_client::Client;
let client = Client::new_from_env();Modules§
- bulk_
edit_ objects requests - config
requests - correspondents
requests - custom_
fields requests - document_
types requests - documents
requests - groups
requests - logs
requests - mail_
accounts requests - mail_
rules requests - oauth
requests - profile
requests - remote_
version requests - saved_
views requests - search
requests - share_
links requests - statistics
requests - status
requests - storage_
paths requests - tags
requests - tasks
requests - token
requests - trash
requests - types
- This module contains the generated types for the library.
- ui_
settings requests - users
requests - workflow_
actions requests - workflow_
triggers requests - workflows
requests
Structs§
- Client
requests - Entrypoint for interacting with the API client.
- Request
Builder retryandrequests - A request builder.