Section V - testing
On the command line, run the cargo run --bin reporting
command to start the service. (Or open a new command terminal and start the service using the executable in the target/debug directory).
Now you can open the report data
POST request in Postman and monitor the logging on the command line of the running service.
Note If you get an error message stating "Could not broker document", then make sure to go into the
lib.rs
file and check the value of the KAFKA_BROKERS variable.
The response payload should be something similar to the following:
Last updated
Was this helpful?