offline-news-api
v1.0.1
Published
Simple RESTful API that allows you to get news either item by item or as an array of items.
Downloads
6
Readme
offline-news-api
Simple RESTful API that allows you to get news either item by item or as an array of items.
Install and run
git clone [email protected]:matthew-andrews/offline-news-api.git
cd offline-news-api
npm install
node index.js
Documentation
GET /stories
Returns an array of story objects - see GET /stories/:guid for documentation on story objects.
curl https://offline-news-api.herokuapp.com/stories
GET /stories/:guid
Returns a story object with given guid.
curl https://offline-news-api.herokuapp.com/stories/249271
Property | Type | Description -------- | --------- | ----------------------------- guid | string | Unique identifier, also a URL author | string | Author of the story title | string | Title, usually the headline body | string | Story body date | timestamp | Publish date