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

27 lines
511 B
Plaintext

meta {
name: "Link Unlinked Book - Manual Resolution"
type: http
seq: 5
}
post {
url: {{base_url}}/api/sync/link-book
body: json({
"unlinked_book_id": "{{unlinked_book_id}}",
"media_item_id": "{{media_item_id}}",
"confidence_score": 1.0
})
auth: {
type: bearer
bearer: {{user_token}}
}
}
assert {
response.status == 200
response.body.status == "linked"
response.body.unlinked_book_id exists()
response.body.media_item_id exists()
response.body.message exists()
}