- Move all files from bruno-yaml/* to bruno/* - Maintains existing directory structure within categories - Updates bruno/user/auth files with OAuth2 refresh token flow - Updates bruno/user/profile files for user profile management - Adds bruno/dashboard/ directory with dashboard API tests - Preserves all existing test scenarios and OpenCollection YAML format - No functional changes - file reorganization only
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
info:
|
|
name: KOReader Sync Progress - SHA-256
|
|
type: http
|
|
seq: 1
|
|
http:
|
|
method: POST
|
|
url: '{{base_url}}/api/v1/koreader/sync/progress'
|
|
auth: inherit
|
|
body:
|
|
type: json
|
|
jsonBody: "{\n \"sync_mode\": \"immediate\",\n \"books\": [\n {\n \
|
|
\ \"uuid\": \"{{book_uuid"
|
|
headers:
|
|
- key: Authorization
|
|
value: Bearer {{koreader_device_token
|
|
|
|
docs: |-
|
|
## KOReader Sync Progress - SHA-256
|
|
|
|
Synchronizes reading progress from a KOReader device using SHA-256 book hash for identification.
|
|
|
|
**Method:** POST
|
|
|
|
**Endpoint:** /api/v1/koreader/sync/progress
|
|
|
|
**Authentication:** Bearer token (KOReader device token)
|
|
|
|
**Request Body:**
|
|
- `sync_mode` (string): Sync mode (immediate, deferred)
|
|
- `books` (array): Array of book progress objects
|
|
- `uuid` (string): Book UUID
|
|
- `sha256` (string): SHA-256 hash of book file for identification
|
|
- `file_path` (string): Path to book file on device
|
|
- `percentage` (number): Progress percentage (0-1)
|
|
- `chapter` (number): Current chapter
|
|
- `page` (number): Current page
|
|
- `total_pages` (number): Total pages
|
|
- `epubcfi` (string): EPUB location
|
|
- `last_read` (string): ISO 8601 timestamp
|
|
- `title` (string): Book title
|
|
- `authors` (array): List of authors
|
|
|
|
**Response:**
|
|
- `sync_status` (string): Sync status
|
|
- `books_synced` (number): Number of books synced
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 202: Accepted - processing
|
|
- 401: Unauthorized
|
|
- 500: Internal server error
|