info:
  name: Search All Libraries
  type: http
  seq: 1

http:
  method: GET
  url: "{{base_url}}/api/media-items/search"
  params:
    - name: q
      value: "harry"
      type: query
      disabled: false
  auth: inherit

settings:
  encodeUrl: true
  timeout: 0
  followRedirects: true
  maxRedirects: 5

docs: |-
  ## Search All Libraries

  Searches for media items across all libraries without filtering.

  **Method:** GET

  **Endpoint:** /api/media-items/search

  **Authentication:** Required (Bearer token)

  **Query Parameters:**
  - `q` (string, required): Search query (minimum 2 characters)

  **Response:** HTTP 200 (OK)
  ```json
  [
    {
      "id": "uuid",
      "title": "Harry Potter and the Sorcerer's Stone",
      "author": "J.K. Rowling",
      "library_id": "uuid",
      "library_name": "E-Books"
    }
  ]
  ```

  **Success Criteria:**
  - Status: 200
  - Returns array of media items from all libraries
  - Results match search query
