this plugin can be used to generate the boiler plate code to access a database and provide a rest api for it that offers create read update delete. I use Slick for the database access.
from the demo blog project for example
GET /tables/blog ( with optional query params sortBy and direction)
GET /tables/blog// (this queries database where = . You can also use optional query params sortBy and direction)
Note if GET / queries a timestamp it should be passes a long value not text representation
slick,controller and routes generated from single configuration file.
You have to create the database as well as configure it in application.conf
There are sample test projects under directory
while a fuller project
which is deployed on Heroku here