- 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
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
meta {
|
|
name: Get Ebook Folders
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
get {
|
|
url: {{base_url}}/api/auth/ebook-folders
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Get Ebook Folders - DEPRECATED
|
|
|
|
⚠️ **This endpoint is deprecated and will return HTTP 410 Gone.**
|
|
|
|
**Use the new library system instead:**
|
|
- Use `/api/libraries` to manage libraries
|
|
- Use `/api/libraries/{id}/folders` to manage library folders
|
|
|
|
**Migration Path:**
|
|
1. Create a library of type "ebooks"
|
|
2. Add your ebook folders to that library
|
|
3. Use library visibility controls instead of user-specific folders
|
|
|
|
**Response:** HTTP 410 Gone with deprecation message
|
|
|
|
**Status Codes:**
|
|
- 410: Gone (endpoint deprecated)
|
|
- 401: Unauthorized
|
|
- 403: Forbidden (admin access required)
|
|
|
|
**Replacement Endpoints:**
|
|
- `GET /api/libraries` - List all libraries (admin)
|
|
- `GET /api/libraries/visible` - List user's visible libraries
|
|
- `POST /api/libraries` - Create new library
|
|
- `POST /api/libraries/{id}/folders` - Add folder to library
|
|
}
|