- Update Combined Search and Filters: change has_cover to true, tags_filter to fic - Update sequence numbers for all search requests (1-7) - Ensure consistent request ordering in search folder
59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
info:
|
|
name: Search Specific Library
|
|
type: http
|
|
seq: 7
|
|
|
|
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
|