/newsfeed

News feed is a simple application that pulls RSS feed of news to be later consume as API

Primary LanguageGo

News feed

News feed is a simple application that pulls RSS feed of news to be later consume as API

Build the project

make build

Run the server

./cmd/newsfeed

Check docs in browser

http://localhost:9200/swagger/index.html

Endpoint GET /newsFeed

curl http://localhost:9200/newsFeed

Query retrieval with Query Params

curl http://localhost:9200/newsFeed?source=bbc&category=technology

Endpoint POST /newsFeed

Using a complex query as a body request to get a more custom feed list

curl http://localhost:9200/newsFeed

body:

{
    "query":
    {
        "sky": ["entertainment"],
        "bbc": ["technology", "politics"]
    }
}