Updated API fetchFromFeed and fetchFromAllFeeds

pull/134/head
Christophe Vandeplas 2018-10-29 15:39:04 +01:00 committed by GitHub
parent 2dccb001ec
commit 3b619d3f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -1692,7 +1692,7 @@ A feed can be disabled by POSTing on the following URL (feed_id is the id of the
/feeds/disable/feed_id
~~~~
All feeds can fetch via the API:
All feeds can cached via the API:
~~~~
/feeds/cacheFeeds/all
@ -1701,6 +1701,13 @@ All feeds can fetch via the API:
or you can replace `all` by the feed format to fetch like `misp` or `freetext`. `all` can be replaced
with the `id` value of the feed to fetch a specific feed.
To fetch a feed or all feeds:
~~~~
/feeds/fetchFromFeed/feed_id
/feeds/fetchFromAllFeeds
~~~~
This API can be also used to download feeds at regular interval via cronjobs or alike.