- Add Kobo bookmark/markup sync tests - Add Koreader progress/bookmark sync tests - Add OPDS feed tests - Add collection tests - Add sync tests for book linking
38 lines
822 B
Plaintext
38 lines
822 B
Plaintext
meta {
|
|
name: "KOReader Sync Progress - Enhanced with SHA-256"
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
post {
|
|
url: {{base_url}}/api/v1/koreader/sync/progress
|
|
body: json({
|
|
"sync_mode": "immediate",
|
|
"books": [
|
|
{
|
|
"uuid": "{{book_uuid}}",
|
|
"sha256": "{{book_sha256}}",
|
|
"file_path": "/mnt/onboard/The%20Hobbit.epub",
|
|
"percentage": 0.65,
|
|
"chapter": 5,
|
|
"page": 142,
|
|
"total_pages": 310,
|
|
"epubcfi": "/6/4[chap1ref]!/4/2/1:0",
|
|
"last_read": "2026-01-31T12:00:00Z",
|
|
"title": "The Hobbit",
|
|
"authors": ["J.R.R. Tolkien"]
|
|
}
|
|
]
|
|
})
|
|
auth: {
|
|
type: bearer
|
|
bearer: {{koreader_device_token}}
|
|
}
|
|
}
|
|
|
|
assert {
|
|
response.status == 200 || response.status == 202
|
|
response.body.sync_status exists()
|
|
response.body.books_synced >= 0
|
|
}
|