info:
  name: Search Specific Library
  type: http
  seq: 2

http:
  method: GET
  url: "{{base_url}}/api/media-items/search"
  params:
    - name: q
      value: "harry"
      type: query
      disabled: false
    - name: library_id
      value: "{{libraryId}}"
      type: query
      disabled: false
  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
