How to create an easy restful api for a simple model | Hacker News Reader