mirror of
https://github.com/readest/readest.git
synced 2026-05-05 15:24:09 +00:00
feat: readest koplugin for progress sync (#1753)
This commit is contained in:
parent
df074082a8
commit
6a5694d2b2
6 changed files with 903 additions and 0 deletions
33
apps/readest.koplugin/readest-sync-api.json
Normal file
33
apps/readest.koplugin/readest-sync-api.json
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"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
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue