This project is a simple API that fetches and caches the best stories from Hacker News.
- Fetches best stories from Hacker News API
- Caches the stories in memory for faster subsequent requests
- Supports specifying the number of stories to fetch
- Clone the repository
- Open the project in Visual Studio
- Run the project. you will be greeted with a local encryption certificate you can accept that or decline it and use the http version of the API.
- The API will be available at
http://localhost:5692
The main endpoint is /bestStories/{numberOfStories}
, where numberOfStories
is the number of stories you want to fetch.