- Scala
- Sbt
- On OSX or Linux systems, enter
./sbt
- On Windows systems, enter
sbt.bat
.
At the sbt prompt, enter reStart
. Access on http://localhost:8080
- Add some users
curl -H "Content-type: application/json" \
-X POST \
-d '{"name": "MrX", "age": 31, "countryOfResidence": "Canada"}' \
http://localhost:8080/users
curl -H "Content-type: application/json" \
-X POST \
-d '{"name": "Anonymous", "age": 55, "countryOfResidence": "Iceland"}' \
http://localhost:8080/users
curl -H "Content-type: application/json" \
-X POST \
-d '{"name": "Bill", "age": 67, "countryOfResidence": "USA"}' \
http://localhost:8080/users
- And then show users
curl http://localhost:8080/users
- To retrieve a specific user
curl http://localhost:8080/users/Bill
- Now
delete
Bill
curl -X DELETE http://localhost:8080/users/Bill
- https://developer.lightbend.com/guides/akka-http-quickstart-scala/
- https://developer.lightbend.com/guides/akka-quickstart-scala
Go to hello-world