Files
bookhoard/bruno/koreader/Sync Annotations (Per-Book 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

40 lines
862 B
Plaintext

meta {
name: "KOReader Sync Annotations - Per-Annotation SHA-256"
type: http
seq: 4
}
post {
url: {{base_url}}/api/v1/koreader/sync/bookmarks
body: json({
"book_uuid": "{{book_uuid}}",
"highlights": [
{
"text": "Quote from book 1",
"pos0": "/6/4[chap1ref]!/4/2/1:0",
"pos1": "/6/4[chap1ref]!/4/2/1:50",
"color": "#ffff00",
"page": 10,
"book_sha256": "{{book_sha256}}"
},
{
"text": "Quote from book 2 (different book)",
"pos0": "/6/4[chap1ref]!/4/2/1:0",
"pos1": "/6/4[chap1ref]!/4/2/1:50",
"color": "#00ff00",
"page": 15,
"book_sha256": "{{another_book_sha256}}"
}
]
})
auth: {
type: bearer
bearer: {{koreader_device_token}}
}
}
assert {
response.status == 200
response.body.highlights_synced >= 0
}