info:
  name: Get Device Catalog
  type: http
  seq: 1
http:
  method: GET
  url: '{{opds_base_url}}/devices/{{device_id}}/catalog?page=1&per_page=50'

docs: |-
  ## Get Device Catalog
  
    Retrieves a paginated catalog of books available for the device, compatible with OPDS feed format.
  
    **Method:** GET
  
    **Endpoint:** /devices/{device_id}/catalog
  
    **Authentication:** Required (Device token or Bearer token)
  
    **Path Parameters:**
    - `device_id` (string): Device ID
  
    **Query Parameters:**
    - `page` (integer, optional): Page number (default 1)
    - `per_page` (integer, optional): Items per page (default 50, max 200)
    - `sort_by` (string, optional): Sort field (title, author, date_added)
    - `order` (string, optional): Sort order (asc, desc)
  
    **Response:**
    - OPDS 2.0 feed with book entries including metadata and download links
  
    **Status Codes:**
    - 200: Success
    - 401: Unauthorized
    - 404: Device not found
