Skip to content

9kittenCo/akka-http-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Akka Http and Slick based CRUD REST operations

Create a Customer

Using CURL:

curl -X "POST" "http://127.0.0.1:8080/v1/customers" \
       -H "Accept: application/json" \
       -H "Content-Type: application/json" \
       -d $'{
  "name": "Customer1",
  "age": 21,
  "gender": 2
    }'

Get All Customers

curl -X "GET" "http://127.0.0.1:8080/v1/customers"

Get A Customer

curl -X "GET" "http://127.0.0.1:8080/v1/customers/1"

Update Customer

curl -X "PUT" "http://127.0.0.1:8080/v1/customers/1" \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -d $'{
  "id": 1,
  "name": "Customer1",
  "age": "21",
  "gender": "2"
}'

Delete Customer

curl -X "DELETE" "http://127.0.0.1:8080/v1/customers/1" \
     -H "Accept: application/json" \
     -H "Content-Type: application/json"

About

simple akka/slick based REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages