This article walks you through how you can easily set up a simple to-do app using Rocket and SQLx with PostgresQL.
/todo/<id>
- Get a to-do item by ID./todo
- Create a to-do item. Takes “note” as a JSON body parameter.shuttle
CLI installed):
shuttle run
. Once you’ve verified that it runs successfully, try using cURL in a new terminal to send a POST request: