sdk-rust/example-projects/axum-example
Yoshiki Kudo 24aec9320c
Support for Axum v0.5.x (#179)
* Support for Axum x0.5.x

* Upgrade axum v0.5 for example-project

Signed-off-by: Yoshiki Kudo <actionstar619@yahoo.co.jp>
2022-05-03 13:47:04 -04:00
..
src Axum 0.4.0 (#168) 2022-01-17 09:23:12 -05:00
Cargo.toml Support for Axum v0.5.x (#179) 2022-05-03 13:47:04 -04:00
README.md Add some example help 2021-10-20 21:46:44 -04:00

README.md

To run the server:

cargo run

To test a GET:

curl http://localhost:8080

To test a POST:

curl -d '{"hello": "world"}' \
  -H'content-type: application/json' \
  -H'ce-specversion: 1.0' \
  -H'ce-id: 1' \
  -H'ce-source: http://cloudevents.io' \
  -H'ce-type: dev.knative.example' \
  http://localhost:8080