Files
bookhoard/bruno/progress/Update Reading Progress.bru
T
john-okeefe 8db5939892 refactor: standardize Bruno API requests with bruToJsonV2 format
- Convert all JSON tests to JavaScript functions for bruToJsonV2 compatibility
- Update authentication to use 'inherit' instead of manual headers
- Fix hardcoded URLs to use {{base_url}} variables
- Standardize variable syntax from {{ _.var }} to {{var}}
- Add comprehensive API documentation to all requests
- Update environment variables with missing required fields
- Apply consistent structure: meta, http method, headers, tests, vars, settings, docs
- Enhanced validation with proper error handling and field checks
2026-01-28 20:13:56 -05:00

45 lines
752 B
Plaintext

meta {
name: Update Reading Progress
type: http
seq: 7
}
put {
url: {{base_url}}/api/ebooks/{{ebookid}}/progress
body: json
auth: inherit
}
body:json {
{
"current_page": 45,
"total_pages": 200
}
}
settings {
encodeUrl: true
timeout: 0
}
docs {
## Update Reading Progress
Updates the authenticated user's reading progress for an ebook.
**Authentication:** Required (Bearer token)
**Path Parameters:**
- `id` (string): Ebook UUID
**Request Body:**
- `current_page` (number, required): Current page number
- `total_pages` (number, optional): Total pages in book
**Response:** Updated progress object
**Error Responses:**
- 401: Invalid authentication
- 400: Invalid request data
}