sdk-rust/example-projects/axum-example
Omar Zabala-Ferrera 5345ee3edc Updating axum.
Signed-off-by: Omar Zabala-Ferrera <ozf-dev@pm.me>
2025-01-06 11:02:39 -05:00
..
src Upgrade dependencies, including http and hyper, where possible. (#233) 2024-12-02 17:45:10 +01:00
Cargo.toml Updating axum. 2025-01-06 11:02:39 -05: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