DEV Community

loading...

Discussion on: Practical Rust Web Development - API Rest

werner profile image
Werner Echezuría Author

Hi, sorry for the late response, I was on vacations. Try to follow these tips and tell me if it works.

  1. git checkout v1.1.
  2. diesel setup.
  3. cargo run.
  4. curl http://127.0.0.1:8088/products -H "Content-Type: application/json" -d '{"name": "socks", "stock": 7, "price": 2}
  5. curl http://localhost:8088/products

Tell me if it works.

Thread Thread
saroar profile image
Saroar Khandoker

yes it is working thanks :)