- Remove all ebook-specific API requests (15 files deleted) - Rename Scan Ebooks.bru to Scan Media Items.bru - Update API paths from /api/ebooks to /api/media-items - Update base URL and environment configuration - Maintain all existing media-items, library, auth, and progress tests Aligns Bruno collection with unified media-items API architecture
56 lines
1.1 KiB
Plaintext
56 lines
1.1 KiB
Plaintext
meta {
|
|
name: Get Library Folders
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{base_url}}/api/libraries/{{library_id}}/folders
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
headers {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
vars:pre-request {
|
|
libraryId: "8821b703-h29b-71d4-d716-446655440003"
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Get Library Folders
|
|
|
|
Retrieves all folders associated with a specific library.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /api/libraries/{id}/folders
|
|
|
|
**Authentication:** Required (Bearer token)
|
|
|
|
**Path Parameters:**
|
|
- `id` (string, required): Library UUID
|
|
|
|
**Response:** Array of folder objects
|
|
- `id` (string): Folder UUID
|
|
- `library_id` (string): Library UUID
|
|
- `folder_path` (string): Absolute path to the folder
|
|
- `is_active` (boolean): Whether the folder is currently active for scanning
|
|
- `last_scanned` (string, optional): Timestamp of last scan
|
|
- `created_at` (string): Creation timestamp
|
|
- `updated_at` (string): Last update timestamp
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 401: Unauthorized
|
|
- 403: Forbidden (library access denied)
|
|
- 404: Library not found
|
|
- 500: Internal server error
|
|
}
|