【文件属性】:
文件名称:akka-http-api-helloworld:Akka HTTP最小JSON RequestResponse示例
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-12 04:45:16
Java
Akka-HTTP Hello World
Akka-http的最小示例
安装并运行
$ ##### Tutorial Install/Run #####
$ git clone https://github.com/allenhwkim/akka-http-helloworld.git
$ cd akka-http-helloworld
$ sbt compile run
$ curl http://localhost:8080/pet/1
{"id":1,"name":"cat"}
$ curl -X POST -H "Content-Type: application/json" -d '{"id": 2, "name": "puppy"}' http://localhost:8080/pet
{"id":2,"name":"puppy"}
$ curl http://loca
【文件预览】:
akka-http-api-helloworld-master
----project()
--------build.properties(18B)
--------plugins.sbt(68B)
----src()
--------main()
----build.sbt(803B)
----README.md(479B)
----.gitignore(166B)