- Device token regeneration tests (success, forbidden, not found, unauthorized) - OPDS authentication tests (Bearer token, query token) - Kobo sync tests with token authentication - Test various authentication methods and error cases
40 lines
918 B
Plaintext
40 lines
918 B
Plaintext
meta {
|
|
name: Download Book - Query Token
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
get {
|
|
url: {{opds_base_url}}/opds/devices/{{device_id}}/download/{{book_id}}?token={{device_token}}
|
|
}
|
|
|
|
docs {
|
|
## Download Book - Query Token
|
|
|
|
Tests OPDS book download using query parameter authentication.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /opds/devices/{device_id}/download/{book_id}?token={device_token}
|
|
|
|
**Authentication:** Query parameter (for Kobo devices)
|
|
|
|
**Path Parameters:**
|
|
- `device_id` (string): Device UUID
|
|
- `book_id` (string): Book UUID
|
|
- `token` (string): Device auth_token
|
|
|
|
**Response:** Book file (EPUB)
|
|
|
|
**Status Codes:**
|
|
- 200: Success (book file)
|
|
- 401: Unauthorized (missing or invalid token)
|
|
- 403: Device sync disabled
|
|
- 404: Device not found
|
|
- 500: Book not found
|
|
|
|
**Important:** Kobo devices use query parameter for OPDS downloads
|
|
|
|
**Use Case:** Kobo devices downloading books from OPDS
|
|
}
|