info:
  name: Download Book (EPUB)
  type: http
  seq: 3
http:
  method: GET
  url: '{{opds_base_url}}/devices/{{device_id}}/download/{{book_id}}'

docs: |-
  ## Download Book (EPUB)
  
    Downloads a book in standard EPUB format for reading on e-reader devices.
  
    **Method:** GET
  
    **Endpoint:** /devices/{device_id}/download/{book_id}
  
    **Authentication:** Required (Device token or Bearer token)
  
    **Path Parameters:**
    - `device_id` (string): Device ID
    - `book_id` (string): Book ID
  
    **Query Parameters:**
    - `format` (string, optional): File format (epub, default)
  
    **Response:**
    - Binary EPUB file content
  
    **Status Codes:**
    - 200: Success (file download)
    - 401: Unauthorized
    - 403: Forbidden (device not authorized for this book)
    - 404: Book not found
