Currently the bot returns a list of JSON objects with the news items when the http://hostname:4567/news URL is sent a HTTP GET.
What is missing are listing, removing and adding feeds. We can define new paths like:
/v1/news <- shows the latests news
/v1/list <- lists the news feeds
/v1/remove/{index} <- removes the feed number $index as returned by list
/v1/add?url=http://mynewsfeed.org/rss <- adds feed with URL
v1 is the version of the API. This issue depends on issue #4.
Currently the bot returns a list of JSON objects with the news items when the http://hostname:4567/news URL is sent a HTTP GET.
What is missing are listing, removing and adding feeds. We can define new paths like:
/v1/news
<- shows the latests news/v1/list
<- lists the news feeds/v1/remove/{index}
<- removes the feed number $index as returned by list/v1/add?url=http://mynewsfeed.org/rss
<- adds feed with URLv1 is the version of the API. This issue depends on issue #4.