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.
59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
info:
|
|
name: Search Specific Library
|
|
type: http
|
|
seq: 15
|
|
|
|
http:
|
|
method: GET
|
|
url: "{{base_url}}/api/media-items/search?q=beo&library_id={{library_id}}"
|
|
params:
|
|
- name: q
|
|
value: beo
|
|
type: query
|
|
- name: library_id
|
|
value: "{{library_id}}"
|
|
type: query
|
|
auth: inherit
|
|
|
|
settings:
|
|
encodeUrl: true
|
|
timeout: 0
|
|
followRedirects: true
|
|
maxRedirects: 5
|
|
|
|
docs: |-
|
|
## Search Specific Library
|
|
|
|
Searches for media items within a specific library using the library_id filter.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /api/media-items/search
|
|
|
|
**Authentication:** Required (Bearer token)
|
|
|
|
**Query Parameters:**
|
|
- `q` (string, required): Search query (minimum 2 characters)
|
|
- `library_id` (string/UUID, required): Filter results to specific library
|
|
|
|
**Response:** HTTP 200 (OK)
|
|
```json
|
|
[
|
|
{
|
|
"id": "uuid",
|
|
"title": "Harry Potter and the Sorcerer's Stone",
|
|
"author": "J.K. Rowling",
|
|
"library_id": "{{libraryId}}",
|
|
"library_name": "My Library"
|
|
}
|
|
]
|
|
```
|
|
|
|
**Success Criteria:**
|
|
- Status: 200
|
|
- All results have `library_id` matching the filter
|
|
- Results match search query
|
|
|
|
**Test Setup:**
|
|
- Set `libraryId` environment variable to a valid library UUID
|