feat(sync): add readest koplugin for progress sync, also implements #1729 (#1785)

This commit is contained in:
Huang Xin 2025-08-13 00:24:47 +08:00 committed by GitHub
parent 3698e6ca28
commit 0dfa8e96f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 291 additions and 175 deletions

View file

@ -1,33 +1,19 @@
{
"base_url": "http://localhost:3000/api",
"name": "readest-sync-api",
"methods": {
"pullChanges": {
"path": "/sync",
"method": "GET",
"required_params": [
"since",
"type",
"book"
],
"expected_status": [
200,
400,
401
]
},
"pushChanges": {
"path": "/sync",
"method": "POST",
"required_params": [],
"payload": [],
"expected_status": [
200,
201,
400,
401,
422
]
"base_url": "http://web.readest.com/api",
"name": "readest-sync-api",
"methods": {
"pullChanges": {
"path": "/sync",
"method": "GET",
"required_params": ["since", "type", "book"],
"expected_status": [200, 400, 401, 403]
},
"pushChanges": {
"path": "/sync",
"method": "POST",
"required_params": ["books", "notes", "configs"],
"payload": ["books", "notes", "configs"],
"expected_status": [200, 201, 400, 401, 403]
}
}
}
}
}