Standardize all Bruno API request files with consistent formatting and structure to improve maintainability and readability. Changes include: - Consolidate URL parameters into main URL instead of separate definitions - Standardize quote style (double quotes throughout) - Add proper settings section with defaults (timeout, redirects, etc.) - Improve YAML formatting with literal style for multi-line content - Remove redundant fields (disabled: false) - Clean up header and body structure - Update sequence numbers for better organization - Add scenarios folder structure for organized test groupings Removes obsolete Search Invalid Library ID test case. Environment configuration updated with new library_id for testing. These changes improve the Bruno collection's maintainability and make it easier to create new API requests following established patterns.
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
info:
|
|
name: List Media Items
|
|
type: http
|
|
seq: 1
|
|
|
|
http:
|
|
method: GET
|
|
url: "{{base_url}}/api/media-items?library_id={{library_id}}&limit=20&offset=0"
|
|
headers:
|
|
- name: ""
|
|
value: application/json
|
|
auth: inherit
|
|
|
|
settings:
|
|
encodeUrl: true
|
|
timeout: 0
|
|
followRedirects: true
|
|
maxRedirects: 5
|
|
|
|
docs: |-
|
|
## List Media Items
|
|
|
|
Retrieves a paginated list of media items from a specific library.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /api/media-items
|
|
|
|
**Authentication:** Required (Bearer token)
|
|
|
|
**Query Parameters:**
|
|
- `library_id` (string, required): Library UUID to filter items
|
|
- `limit` (number, optional): Number of results per page (default: 20, max: 100)
|
|
- `offset` (number, optional): Pagination offset (default: 0)
|
|
|
|
**Response:** Array of media item objects
|
|
- `id` (string): Media item UUID
|
|
- `title` (string): Media item title
|
|
- `library_id` (string): Library UUID
|
|
- `media_type` (string): Type of media (e.g., "ebook", "audiobook")
|
|
- `file_path` (string): Path to media file
|
|
- `created_at` (string): Creation timestamp
|
|
- `updated_at` (string): Last update timestamp
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 400: Invalid query parameters
|
|
- 401: Unauthorized
|
|
- 403: Forbidden (library access denied)
|
|
- 404: Library not found
|
|
- 500: Internal server error
|