- Add library management requests (CRUD operations) - Create media items API requests for library content - Implement library visibility controls - Add user library access management - Update deprecated ebook folder endpoints with migration guide - Include comprehensive documentation and test cases - Replace collection.bru with proper dashboard request Complete Bruno collection supporting new multi-library architecture
55 lines
1.1 KiB
Plaintext
55 lines
1.1 KiB
Plaintext
meta {
|
|
name: Delete Ebook Folder
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
delete {
|
|
url: {{base_url}}/api/auth/ebook-folders
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"folder_path": "/path/to/ebooks"
|
|
}
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Delete Ebook Folder - DEPRECATED
|
|
|
|
⚠️ **This endpoint is deprecated and will return HTTP 410 Gone.**
|
|
|
|
**Method:** DELETE
|
|
|
|
**Endpoint:** /api/auth/ebook-folders
|
|
|
|
**Authentication:** Required (Admin only)
|
|
|
|
**Request Body:** JSON object with:
|
|
- `folder_path` (string, required): Path to the ebook folder to delete
|
|
|
|
**Response:** Success message object:
|
|
- `message` (string): "ebook folder deleted successfully"
|
|
|
|
**Status Codes:**
|
|
- 200: Folder deleted successfully
|
|
- 400: Bad request (invalid folder path)
|
|
- 401: Unauthorized
|
|
- 403: Forbidden (admin access required)
|
|
- 404: Folder not found
|
|
- 500: Internal server error
|
|
|
|
**Features:**
|
|
- Admin-only endpoint for deleting ebook folders
|
|
- Path normalization for matching
|
|
- Supports both absolute paths and home directory (~) paths
|
|
- Prevents deletion of non-existent folders
|
|
}
|