- Update bulk-delete test: endpoint URL, request field (book_ids → media_item_ids), response field (success → deleted), documentation - Update bulk-update test: endpoint URL, request structure (updates → media_item_updates), response field (success → updated), documentation - Update download test: endpoint URL (/api/books/ → /api/media-items/), documentation
43 lines
915 B
Plaintext
43 lines
915 B
Plaintext
meta {
|
|
name: Download Media Item
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{baseURL}}/api/media-items/{{bookUUID}}/download
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Download Media Item
|
|
|
|
Download a media item file (EPUB, PDF, etc.) from Bookhoard server.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /api/media-items/{bookUUID}/download
|
|
|
|
**Authentication:** None (for Kobo device downloads)
|
|
|
|
**Path Parameters:**
|
|
- `bookUUID` (string): Media item UUID
|
|
|
|
**Response:** Binary file data (EPUB, PDF, etc.)
|
|
|
|
**Response Headers:**
|
|
- `Content-Type`: application/epub+zip, application/pdf, or appropriate MIME type
|
|
|
|
**Status Codes:**
|
|
- 200: Success - File returned
|
|
- 404: Media item not found
|
|
|
|
**Note:** This endpoint is designed for Kobo devices to download media items directly from Bookhoard. The endpoint returns the file with appropriate Content-Type headers.
|
|
}
|