+ Indexers +
+Using the API to access/update indexers
+From ea588648f96b5db02fa0d56883c2ba078bd4e74f Mon Sep 17 00:00:00 2001
From: markbeep
AudioBookRequest provides a RESTful API for managing users and audiobook requests. The API uses Bearer token authentication with API keys that can be generated through the web interface.
+AudioBookRequest provides a RESTful API for a select few endpoints.
+The API uses Bearer token authentication with API keys that can be generated +through the web interface.
Follow these steps to create an API key for accessing the AudioBookRequest API:
-Include your API key in the Authorization header of your API requests:
Authorization: Bearer <your-api-key>
Example using cURL:
-curl -H "Authorization: Bearer your-api-key-here" \
- http://localhost:8000/api/users/me
+curl -H "Authorization: Bearer <your-api-key-here>" https://abr.example.com/api/users/me
API Documentation
For a SwaggerUI documentation with interactive testing capabilities:
-- Set the environment variable
ABR_OPENAPI_ENABLED=true
+- Set the environment variable
ABR_APP__OPENAPI_ENABLED=true
- Head to
<your-domain>/docs.
@@ -893,6 +887,63 @@ one of the following pages:
+
+
+
+
+
+
+
+ 2.2.1 - Indexers
+ Using the API to access/update indexers
+ There are two main endpoints to work with indexers:
+
+- A
PATCH to update indexer settings.
+- A
GET to get all the available configuration settings for the indexers.
+
+Head to the main API Docs to see how you can access the SwaggerUI
+and more easily test the endpoints.
+Getting the Indexer Configurations
+To figure out what values you need to adjust, GET the endpoint
+/api/indexers/configurations.
+This will give you something along the lines of this:
+{
+ "MyAnonamouse": [
+ {
+ "name": "mam_session_id",
+ "description": null,
+ "default": null,
+ "required": true,
+ "type": "str"
+ },
+ {
+ "name": "mam_active",
+ "description": null,
+ "default": "True",
+ "required": false,
+ "type": "bool"
+ }
+ ]
+}
+
This gives you the full information about what values can be adjusted.
+Updating Indexer Settings
+You can update indexer settings by sending a PATCH request to
+/api/indexers/{indexer name}. The name is case-sensitive. The body has to
+be a JSON object with key-value pairs of the values you want to update.
+Here is an example using cURL: as
+curl -X 'PATCH' \
+ 'https://abr.example.com/api/indexers/MyAnonamouse' \
+ -H 'accept: application/json' \
+ -H 'Authorization: Bearer MaEqMYAGY3qvXxtje6-YDxcs4damlyRaKzTC8itG2b8' \
+ -d '{"mam_session_id":"bXDv1tC1d2MVvOypbFy8Q4Q-rz6q-bKwdqaSZzm85Dg"}'
+
+
+
+
+
+
+
+
diff --git a/docs/concepts/_print/index.html b/docs/concepts/_print/index.html
index 3cb6a39..ae74adb 100644
--- a/docs/concepts/_print/index.html
+++ b/docs/concepts/_print/index.html
@@ -30,7 +30,7 @@
-
+
diff --git a/docs/concepts/environment-variables/index.html b/docs/concepts/environment-variables/index.html
index 1022a9e..90ae3a3 100644
--- a/docs/concepts/environment-variables/index.html
+++ b/docs/concepts/environment-variables/index.html
@@ -27,12 +27,12 @@
-
+
-
+
@@ -162,8 +162,13 @@
@@ -372,7 +377,7 @@ and second part of each environment variable like between ABR_APP a
:nightly version tag can be used.
AudioBookRequest provides a RESTful API for managing users and audiobook requests. The API uses Bearer token authentication with API keys that can be generated through the web interface.
+AudioBookRequest provides a RESTful API for a select few endpoints.
+The API uses Bearer token authentication with API keys that can be generated +through the web interface.
Follow these steps to create an API key for accessing the AudioBookRequest API:
-Include your API key in the Authorization header of your API requests:
Authorization: Bearer <your-api-key>
Example using cURL:
-curl -H "Authorization: Bearer your-api-key-here" \
- http://localhost:8000/api/users/me
+curl -H "Authorization: Bearer <your-api-key-here>" https://abr.example.com/api/users/me
API Documentation
For a SwaggerUI documentation with interactive testing capabilities:
-- Set the environment variable
ABR_OPENAPI_ENABLED=true
+- Set the environment variable
ABR_APP__OPENAPI_ENABLED=true
- Head to
<your-domain>/docs.
@@ -349,6 +343,63 @@ one of the following pages:
+
+
+
+
+
+
+
+ 2.1 - Indexers
+ Using the API to access/update indexers
+ There are two main endpoints to work with indexers:
+
+- A
PATCH to update indexer settings.
+- A
GET to get all the available configuration settings for the indexers.
+
+Head to the main API Docs to see how you can access the SwaggerUI
+and more easily test the endpoints.
+Getting the Indexer Configurations
+To figure out what values you need to adjust, GET the endpoint
+/api/indexers/configurations.
+This will give you something along the lines of this:
+{
+ "MyAnonamouse": [
+ {
+ "name": "mam_session_id",
+ "description": null,
+ "default": null,
+ "required": true,
+ "type": "str"
+ },
+ {
+ "name": "mam_active",
+ "description": null,
+ "default": "True",
+ "required": false,
+ "type": "bool"
+ }
+ ]
+}
+
This gives you the full information about what values can be adjusted.
+Updating Indexer Settings
+You can update indexer settings by sending a PATCH request to
+/api/indexers/{indexer name}. The name is case-sensitive. The body has to
+be a JSON object with key-value pairs of the values you want to update.
+Here is an example using cURL: as
+curl -X 'PATCH' \
+ 'https://abr.example.com/api/indexers/MyAnonamouse' \
+ -H 'accept: application/json' \
+ -H 'Authorization: Bearer MaEqMYAGY3qvXxtje6-YDxcs4damlyRaKzTC8itG2b8' \
+ -d '{"mam_session_id":"bXDv1tC1d2MVvOypbFy8Q4Q-rz6q-bKwdqaSZzm85Dg"}'
+
+
+
+
+
+
+
+
diff --git a/docs/tutorials/api/_print/index.html b/docs/tutorials/api/_print/index.html
index e8efdd1..a65be8f 100644
--- a/docs/tutorials/api/_print/index.html
+++ b/docs/tutorials/api/_print/index.html
@@ -30,8 +30,8 @@
-
-
+
+
@@ -152,48 +152,42 @@ This is the multi-page printable view of this section.
+
+
+
+1: Indexers
+
+
+
+
Overview
-AudioBookRequest provides a RESTful API for managing users and audiobook requests. The API uses Bearer token authentication with API keys that can be generated through the web interface.
+AudioBookRequest provides a RESTful API for a select few endpoints.
+The API uses Bearer token authentication with API keys that can be generated
+through the web interface.
How to Create an API Key
Follow these steps to create an API key for accessing the AudioBookRequest API:
-Step 1: Access the Web Interface
-
-- Open your web browser and navigate to your AudioBookRequest instance
-- Log in with your username and password
-
-Step 2: Navigate to Account Settings
-
-- Once logged in, click on the Settings menu
-- Select Account from the settings options
-
-Step 3: Create a New API Key
- In the Account settings page, look for the API Keys section
-- Click on Create New API Key or similar button
-- Enter a descriptive name for your API key (e.g., “Mobile App”, “Automation Script”, “Home Assistant Integration”)
-- Click Generate or Create
-
-Step 4: Copy and Store Your API Key
-
+- Enter a unique name for your API key
+- Click on Create API Key
- Important: The API key will only be displayed once for security reasons
- Copy the generated API key immediately and store it in a secure location
- If you lose the key, you’ll need to generate a new one
-Step 5: Use Your API Key
+Use Your API Key
Include your API key in the Authorization header of your API requests:
Authorization: Bearer <your-api-key>
Example using cURL:
-curl -H "Authorization: Bearer your-api-key-here" \
- http://localhost:8000/api/users/me
+curl -H "Authorization: Bearer <your-api-key-here>" https://abr.example.com/api/users/me
API Documentation
For a SwaggerUI documentation with interactive testing capabilities:
-- Set the environment variable
ABR_OPENAPI_ENABLED=true
+- Set the environment variable
ABR_APP__OPENAPI_ENABLED=true
- Head to
<your-domain>/docs.
@@ -210,6 +204,63 @@ This is the multi-page printable view of this section.
+
+
+
+
+
+
+
+ 1 - Indexers
+ Using the API to access/update indexers
+ There are two main endpoints to work with indexers:
+
+- A
PATCH to update indexer settings.
+- A
GET to get all the available configuration settings for the indexers.
+
+Head to the main API Docs to see how you can access the SwaggerUI
+and more easily test the endpoints.
+Getting the Indexer Configurations
+To figure out what values you need to adjust, GET the endpoint
+/api/indexers/configurations.
+This will give you something along the lines of this:
+{
+ "MyAnonamouse": [
+ {
+ "name": "mam_session_id",
+ "description": null,
+ "default": null,
+ "required": true,
+ "type": "str"
+ },
+ {
+ "name": "mam_active",
+ "description": null,
+ "default": "True",
+ "required": false,
+ "type": "bool"
+ }
+ ]
+}
+
This gives you the full information about what values can be adjusted.
+Updating Indexer Settings
+You can update indexer settings by sending a PATCH request to
+/api/indexers/{indexer name}. The name is case-sensitive. The body has to
+be a JSON object with key-value pairs of the values you want to update.
+Here is an example using cURL: as
+curl -X 'PATCH' \
+ 'https://abr.example.com/api/indexers/MyAnonamouse' \
+ -H 'accept: application/json' \
+ -H 'Authorization: Bearer MaEqMYAGY3qvXxtje6-YDxcs4damlyRaKzTC8itG2b8' \
+ -d '{"mam_session_id":"bXDv1tC1d2MVvOypbFy8Q4Q-rz6q-bKwdqaSZzm85Dg"}'
+
+
+
+
+
+
+
+
diff --git a/docs/tutorials/api/index.html b/docs/tutorials/api/index.html
index b4de2f8..7599424 100644
--- a/docs/tutorials/api/index.html
+++ b/docs/tutorials/api/index.html
@@ -30,8 +30,8 @@
-
-
+
+
@@ -160,8 +160,13 @@
@@ -202,11 +207,7 @@
- Overview
- How to Create an API Key
- API Documentation
@@ -254,49 +255,42 @@
Overview
-AudioBookRequest provides a RESTful API for managing users and audiobook requests. The API uses Bearer token authentication with API keys that can be generated through the web interface.
+AudioBookRequest provides a RESTful API for a select few endpoints.
+The API uses Bearer token authentication with API keys that can be generated
+through the web interface.
How to Create an API Key
Follow these steps to create an API key for accessing the AudioBookRequest API:
-Step 1: Access the Web Interface
-
-- Open your web browser and navigate to your AudioBookRequest instance
-- Log in with your username and password
-
-Step 2: Navigate to Account Settings
-
-- Once logged in, click on the Settings menu
-- Select Account from the settings options
-
-Step 3: Create a New API Key
- In the Account settings page, look for the API Keys section
-- Click on Create New API Key or similar button
-- Enter a descriptive name for your API key (e.g., “Mobile App”, “Automation Script”, “Home Assistant Integration”)
-- Click Generate or Create
-
-Step 4: Copy and Store Your API Key
-
+- Enter a unique name for your API key
+- Click on Create API Key
- Important: The API key will only be displayed once for security reasons
- Copy the generated API key immediately and store it in a secure location
- If you lose the key, you’ll need to generate a new one
-Step 5: Use Your API Key
+Use Your API Key
Include your API key in the Authorization header of your API requests:
Authorization: Bearer <your-api-key>
Example using cURL:
-curl -H "Authorization: Bearer your-api-key-here" \
- http://localhost:8000/api/users/me
+curl -H "Authorization: Bearer <your-api-key-here>" https://abr.example.com/api/users/me
API Documentation
For a SwaggerUI documentation with interactive testing capabilities:
-- Set the environment variable
ABR_OPENAPI_ENABLED=true
+- Set the environment variable
ABR_APP__OPENAPI_ENABLED=true
- Head to
<your-domain>/docs.
-
+
+
+
+ Indexers
+
+ Using the API to access/update indexers
+
+
+
+Feedback
+Was this page helpful?
+
+
+
+ Glad to hear it! Please tell us how we can improve.
+
+
+ Sorry to hear that. Please tell us how we can improve.
+
+
+
+
+
+
+
+
+
+
+
+