A single user todo/note making rest service using Django Rest Framework, MongoDb, and Haystack(elastic search)
This software is an attempt to put all of the below to work together in a simple application:
- Django Rest Framework
- MongoDB (via django nonrel)
- Haystack/Elastic search (powered by heroku searchbox/searchly)
- Another rest service (Twilio) to send SMS to oneself
If you'd like to see a working demo on Heroku, please contact me at labheshr[at]gmail[dot]com
Endpoint description: (If possible please use Google Postman rest client for a "nicer" experience.)
- GET: mysite/todo/ to view all Todo notes by a single user
- GET: mysite/todo/{titlename} to view the Todo note by a specific title
- GET: mysite/todo?title={title of todo note} OR mysite/todo?body={body of todo note} (search via haystack)
- POST: mysite/todo/ body of request must have "title" and "body" fields populated
- DELETE: mysite/todo/{titlename}
- PUT: mysite/todo/{titlename} with key value pair in the body as: title=xxx, body=yyy, done=True or False
Bugs/Todos/Improvements:
- provide support for deleting/querying multiple todos with same titles
- allow an interface for multiple users
- better search handling via haystack framework
Please feel free to use this project or get back to me with comments/questions
Regards,
Labhesh