mirror of
https://github.com/koreader/koreader
synced 2024-11-16 06:12:56 +00:00
23e2183931
This is only step one. It remains to be determined why the connection is downgraded to sslv3, which will result in a handshake failure.
52 lines
1.3 KiB
JSON
52 lines
1.3 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",
|
|
],
|
|
"payload" : [
|
|
"document",
|
|
"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]
|
|
},
|
|
}
|
|
}
|