Skip to content
This repository was archived by the owner on Jan 24, 2020. It is now read-only.
This repository was archived by the owner on Jan 24, 2020. It is now read-only.

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

@gpoppino

Description

@gpoppino

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions