- 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
43 lines
858 B
Plaintext
43 lines
858 B
Plaintext
meta {
|
|
name: Get Library Types
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{base_url}}/api/libraries/types
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
headers {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Get Library Types
|
|
|
|
Retrieves all available library types that can be used when creating libraries.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /api/libraries/types
|
|
|
|
**Authentication:** Required (Bearer token)
|
|
|
|
**Response:** Array of library type objects
|
|
- `id` (string): Type identifier (e.g., "ebooks", "audiobooks", "videos", "other")
|
|
- `name` (string): Display name for the type (e.g., "Ebooks", "Audiobooks", "Videos", "Other")
|
|
- `description` (string, optional): Description of what this type is used for
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 401: Unauthorized
|
|
- 500: Internal server error
|
|
}
|