Files
bookhoard/bruno/ebooks/Update Ebook.yml
T
john-okeefe 55c42f1f99 feat: Add comprehensive backend validation, toast notifications, and Tokyo Night theme
- Backend: Add server-side validation with go-playground/validator/v10
- Frontend: Add toast notifications for API errors with @zerodevx/svelte-toast
- UI: Complete Tokyo Night theme redesign with modern animations
- Docs: Update COMPLETE_DOCUMENTATION.md and README.md with all enhancements
- Validation: Email format, password strength, and input sanitization
- UX: Real-time error feedback, loading states, and responsive design
2026-01-21 20:01:18 -05:00

43 lines
950 B
YAML

meta:
name: Update Ebook
seq: 4
http:
method: put
url: "{{base_url}}/api/ebooks/{{ebook_id}}"
auth:
type: bearer
body:
type: json
data: |
{
"title": "Updated Book Title",
"author": "Updated Author",
"description": "Updated description"
}
vars:
pre-request:
- name: ebook_id
value: "123e4567-e89b-12d3-a456-426614174000"
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
**Response:** Updated ebook object
**Error Responses:**
- 401: Invalid authentication
- 404: Ebook not found
- 400: Invalid request data