Files
bookhoard/bruno/kobo/markup-sync.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

42 lines
901 B
Plaintext

meta {
name: "Kobo Markup Sync - Enhanced with ContentId Mapping"
type: http
seq: 2
}
post {
url: {{base_url}}/api/v1/kobo/markup
body: json({
"ReadingSync": [
{
"ContentId": "kobo_abc123def456",
"PercentRead": 60.0,
"RemainingTimeMin": 120,
"ReadingEvent": "BookRead",
"LastModified": "2026-01-31T12:00:00Z"
}
],
"BookmarkSync": [
{
"BookmarkId": "bookmark_1",
"ContentId": "kobo_abc123def456",
"BookmarkText": "Great quote",
"BookmarkType": "annotation",
"DateCreated": "2026-01-31T12:00:00Z"
}
],
"Metadata": true
})
auth: {
type: bearer
bearer: {{device_token}}
}
}
assert {
response.status == 200
response.body.Status == "Success" || response.body.Status == "Partial"
response.body.MarkupsSynced >= 0
response.body.BookmarksSynced >= 0
}