зеркало из https://github.com/nextcloud/news.git
Add update api
This commit is contained in:
Родитель
bec1e160a6
Коммит
2a1147082d
|
@ -483,11 +483,12 @@ The API should be used in the following way:
|
|||
* Clean up before the update
|
||||
* Get all feeds and user ids
|
||||
* For each feed and user id, run the update
|
||||
* Clean up after the update.
|
||||
* Clean up after the update
|
||||
|
||||
The reference [implementation in Python](https://github.com/owncloud/news-updater) should give you a good idea how to design your own updater.
|
||||
|
||||
If the REST API is used, Authorization is required via Basic Auth and the user needs to be in the admin group. If the ownCloud console API is used, no authorization is required.
|
||||
If the REST API is used, Authorization is required via Basic Auth and the user needs to be in the admin group.
|
||||
If the ownCloud console API is used, no authorization is required.
|
||||
|
||||
### Clean Up Before Update
|
||||
This is used to clean up the database. It deletes folders and feeds that are marked for deletion.
|
||||
|
|
Загрузка…
Ссылка в новой задаче