-
Notifications
You must be signed in to change notification settings - Fork 3
Testing
Jason Reilly edited this page May 3, 2023
·
4 revisions
cargo test --release -- --nocapture
First start the server in one shell/terminal & then post json data to it from another:
cargo run --release
curl -X POST http://localhost:8000/query -d @sample_input.json -H 'Content-Type: application/json' -H 'Accept: application/json' | jq > /tmp/sample_output.pretty.json