Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 652 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 652 Bytes

akka-http-slick

Clone Project:

$ git clone [email protected]:techmonad/akka-http-slick.git
$ cd akka-http-slick

Compile & run unit test:

$ sbt clean compile test

Run application:

$ sbt run

Endpoint details:

$ curl localhost:9000/api/employee/list
   [{"name":"jaz","email":"[email protected]","id":1,"companyName":"ABC solution","position":"Senior Consultant"}]

$ curl -XPOST -H 'Content-Type: application/json' localhost:9000/api/employee/create -d '{"name":"jay","email":"[email protected]","id":1,"companyName":"ABC solution","position":"Senior Consultant"}'
   Employee created successfully[id: 6]