Files
booksprite/plugins/kosync.koplugin/api.json
T
Nick Perez 5941d022a4 KOSync: optionally send document metadata with progress sync (#15306)
Send a metadata object (filename, title, authors) with progress sync
requests when the user opts in via a new 'Send document metadata' toggle
(default off). The metadata is silently ignored by the official sync
server but can be used by custom sync servers.

Closes #13810
Ref: #8764
2026-04-29 12:59:52 +02:00

56 lines
1.4 KiB
JSON

{
"base_url" : "https://sync.koreader.rocks:443/",
"name" : "koreader-sync-api",
"methods" : {
"register" : {
"path" : "/users/create",
"method" : "POST",
"required_params" : [
"username",
"password",
],
"payload" : [
"username",
"password",
],
"expected_status" : [201, 402]
},
"authorize" : {
"path" : "/users/auth",
"method" : "GET",
"expected_status" : [200, 401]
},
"update_progress" : {
"path" : "/syncs/progress",
"method" : "PUT",
"required_params" : [
"document",
"progress",
"percentage",
"device",
"device_id",
],
"optional_params" : [
"metadata",
],
"payload" : [
"document",
"metadata",
"progress",
"percentage",
"device",
"device_id",
],
"expected_status" : [200, 202, 401]
},
"get_progress" : {
"path" : "/syncs/progress/:document",
"method" : "GET",
"required_params" : [
"document",
],
"expected_status" : [200, 401]
},
}
}