Standardize all Bruno environment variables to use snake_case convention
(aligned with Go naming practices) and remove duplicate camelCase variants.
Changes:
- Environment file cleanup:
- Remove: baseUrl, ebookid, fakebookid, libraryId, mediaItemId, isVisible, refreshToken
- Standardize: fakebookid → fake_book_id, isVisible → is_visible, refreshToken → refresh_token
- All variables now use consistent snake_case format
- Update all Bruno requests to use standardized variables:
- ebooks: {{ebookid}} → {{ebook_id}}
- library: {{libraryId}} → {{library_id}}
- media-items: {{mediaItemId}} → {{media_item_id}}
- visibility: {{isVisible}} → {{is_visible}}
- auth: {{refreshToken}} → {{refresh_token}}
Benefits:
- Single source of truth for each variable
- Consistent with Go naming conventions
- No ambiguity about which variable name to use
- Cleaner, more maintainable codebase
45 lines
753 B
Plaintext
45 lines
753 B
Plaintext
meta {
|
|
name: Update Reading Progress
|
|
type: http
|
|
seq: 7
|
|
}
|
|
|
|
put {
|
|
url: {{base_url}}/api/ebooks/{{ebook_id}}/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
|
|
}
|