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.
This commit is contained in:
1 parent
a64f14047d
commit
f28dca1334
10 files changed
No files matched your search
@@ -0,0 +1,58 @@
|
||||
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
|
||||
Reference in new issue
Block a user