Skip to content

Latest commit

 

History

History
34 lines (16 loc) · 861 Bytes

README.md

File metadata and controls

34 lines (16 loc) · 861 Bytes

play-slick-rest

The Play Slick Rest is a very simple json rest api showing one way of using Play Framework 2.5 with slick 3 library for database access.

It supports the following features:

The project was thought to be used as an activator template.

#Running

The database pre-configured is an h2, so you just have to:

    $ sbt run

#Testing

To run all tests (routes and persistence tests):

    $ sbt test

#Using

curl --request POST localhost:9000/supplier -H "Content-type: application/json" --data "{\"name\" : \"sup1\",\"desc\" : \"low prices\"}"

curl localhost:9000/supplier/1

#Credits

To make this template, I just mixed tutorials and templates, so credits for play and slick guys and slick-repo owner.