Files
bookhoard/bruno/media-items/search/Search Specific Library.yml
T
john-okeefe f28dca1334 refactor: reorganize Bruno API collection into subdirectories
- Move search-related requests into bruno/media-items/search/ subdirectory
- Rename Fuzzy Genre Filter.yml to Fuzzy Tags Filter.yml
- Keep scenario-based requests in bruno/media-items/scenarios/
- Improve collection organization and discoverability

This reorganization makes the Bruno API collection more organized by
grouping search endpoints together and updating genre filter to tags filter.
2026-03-25 20:40:25 -04:00

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