Files
bookhoard/bruno/koreader/Sync Progress (SHA-256).bru
T
john-okeefe d6d208c3d1 test(bruno): Add API tests for Kobo, Koreader, OPDS, collections
- 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
2026-01-31 22:32:56 -05:00

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
}