View Code? Open in Web Editor
NEW
An API wrapper built on HackerNews public API
hackernewsapi's Introduction
DJANGO API built over HackerNews' API.
- Clone the project repo
- cd into the project directory
- Prepare a virtual env
- run
pip install -r requirements.txt
to install all dependencies
- run
python manage.py runserver
to start the server
- GET:
/api/items
returns all items in the database
- POST:
/api/items
post data to the database. Fields include by
, title
, text
, url
, type
- PUT:
/api/items/:id
updates Item id
- DELETE:
/api/items/:id
deletes item id
hackernewsapi's People
Contributors
Watchers