64 lines
1.4 KiB
Plaintext
64 lines
1.4 KiB
Plaintext
meta {
|
|
name: Update Ebook
|
|
type: http
|
|
seq: 4
|
|
}
|
|
|
|
put {
|
|
url: http://localhost:8765/api/ebooks/{{ebookid}}
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"title": "Updated Book Title",
|
|
"author": "Updated Author",
|
|
"description": "Updated description",
|
|
"series": "Updated Series",
|
|
"series_number": 2,
|
|
"tags": "fiction,drama",
|
|
"asin": "B0987654321",
|
|
"date_published": "2023-06-15",
|
|
"publisher": "Updated Publisher",
|
|
"contributors": "Updated Editor"
|
|
}
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Update Ebook
|
|
|
|
Updates an existing ebook's metadata.
|
|
|
|
**Authentication:** Required (Bearer token)
|
|
|
|
**Path Parameters:**
|
|
- `id` (string): Ebook UUID
|
|
|
|
**Request Body:** (all fields optional)
|
|
- `title` (string): Book title
|
|
- `author` (string): Book author
|
|
- `isbn` (string): ISBN number
|
|
- `description` (string): Book description
|
|
- `cover_image_path` (string): Path to cover image
|
|
- `series` (string): Book series name
|
|
- `series_number` (number): Position in series
|
|
- `tags` (string): Comma-separated tags
|
|
- `asin` (string): Amazon ASIN
|
|
- `date_published` (string): Publication date (YYYY-MM-DD)
|
|
- `publisher` (string): Publisher name
|
|
- `contributors` (string): Additional contributors
|
|
|
|
**Response:** Updated ebook object
|
|
|
|
**Error Responses:**
|
|
- 401: Invalid authentication
|
|
- 404: Ebook not found
|
|
- 400: Invalid request data
|
|
}
|