- Add auth/Add Ebook Folder.bru - test adding folders to user account - Add auth/Get Ebook Folders.bru - test listing user's folders - Add auth/Delete Ebook Folder.bru - test removing folders - Add scanner/Scan Ebooks.bru - test manual scanning of multiple folders - Add scanner/Start Scanner.bru - test starting folder monitoring - Add scanner/Stop Scanner.bru - test stopping folder monitoring - Update all scanner endpoints to use folder_paths array format
49 lines
788 B
Plaintext
49 lines
788 B
Plaintext
meta {
|
|
name: Add Ebook Folder
|
|
type: http
|
|
seq: 5
|
|
}
|
|
|
|
post {
|
|
url: {{base_url}}/api/auth/ebook-folders
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
body {
|
|
{
|
|
"folder_path": "/path/to/ebooks"
|
|
}
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Add Ebook Folder
|
|
|
|
Adds a new ebook folder for the authenticated user.
|
|
|
|
**Method:** POST
|
|
|
|
**Endpoint:** /api/auth/ebook-folders
|
|
|
|
**Authentication:** Required
|
|
|
|
**Request Body:**
|
|
- `folder_path` (string, required): Path to the ebook folder
|
|
|
|
**Response:**
|
|
- `id` (string): Folder ID
|
|
- `user_id` (string): User ID
|
|
- `folder_path` (string): Folder path
|
|
- `created_at` (string): Creation timestamp
|
|
|
|
**Status Codes:**
|
|
- 201: Created
|
|
- 400: Bad Request
|
|
- 401: Unauthorized
|
|
- 409: Conflict (folder already exists)
|
|
} |