feat: Add admin ebook folder management routes to Bruno collection
- Add POST /api/auth/ebook-folders for adding ebook folders - Add GET /api/auth/ebook-folders for retrieving configured folders - Add DELETE /api/auth/ebook-folders for removing ebook folders - Include comprehensive documentation and request examples - Support path normalization and admin-only access
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
meta {
|
||||
name: Get Ebook Folders
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/api/auth/ebook-folders
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
docs {
|
||||
## Get Ebook Folders
|
||||
|
||||
Retrieves all ebook folders configured for the authenticated user.
|
||||
|
||||
**Method:** GET
|
||||
|
||||
**Endpoint:** /api/auth/ebook-folders
|
||||
|
||||
**Authentication:** Required (Admin only)
|
||||
|
||||
**Response:** Array of folder objects with:
|
||||
- `id` (string): Folder ID (UUID)
|
||||
- `user_id` (string): User ID (UUID)
|
||||
- `folder_path` (string): Normalized folder path
|
||||
- `created_at` (string): Creation timestamp (ISO 8601)
|
||||
|
||||
**Status Codes:**
|
||||
- 200: Success (empty array if no folders found)
|
||||
- 401: Unauthorized
|
||||
- 403: Forbidden (admin access required)
|
||||
- 500: Internal server error
|
||||
|
||||
**Features:**
|
||||
- Admin-only endpoint for retrieving configured folders
|
||||
- Returns all folders configured for the user
|
||||
- Useful for folder management interfaces
|
||||
- Empty array returned if no folders configured
|
||||
}
|
||||
Reference in New Issue
Block a user