scylladb / care-pet

Care Pet IoT ScyllaDB example
https://care-pet.docs.scylladb.com/
Apache License 2.0
47 stars 28 forks source link

docs: Issue in page Build an IoT App with Rust #135

Closed guy9 closed 1 year ago

guy9 commented 1 year ago

I would like to report an issue in page https://iot.scylladb.com/master/build-with-rust

Problem

When running the command: $ curl http://127.0.0.1:8000/api/owner/{id} After following the instructions I get the following result: [guy@fedora rust]$ curl http://127.0.0.1:8000/api/owner/d7784aa3-b3af-4efa-839d-36f9e27ace44 {"owner_id":"d7784aa3-b3af-4efa-839d-36f9e27ace44","address":"home","name":"orngsxsp"} This is different from what is stated as the expected result in the Docs: [{"address":"home","age":57,"name":"tlmodylu","owner_id":"a05fd0df-0f97-4eec-a211-cad28a6e5360","pet_id":"a52adc4e-7cf4-47ca-b561-3ceec9382917","weight":5}]

Suggest a fix

Understand why the results are different

DanielHe4rt commented 1 year ago

There's two docs explaining how to build the Rust example:

Seems that it was just copy-pasted a few examples from there. I'll be submitting a fix with more examples for all endpoints.