feat(kosync): use metadata hash to aggregate different versions of the same book (#2063)

This commit is contained in:
Huang Xin 2025-09-18 20:51:26 +08:00 committed by GitHub
parent 91a5454b46
commit 3380912cdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 116 additions and 48 deletions

View file

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