MadCoderZ / NewsBotIRC

NewsBotIRC - Java IRC Bot with RSS feed reader
MIT License
3 stars 2 forks source link

Provide a RESTful API for the bot using the HTTP protocol #27

Open gpoppino opened 7 years ago

gpoppino commented 7 years ago

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.