This is a simple example of a TODOs API using the POEM OpenAPI v5 framework.
export DATABASE_URL="sqlite:todos.db"
sqlx db create
sqlx migrate run
cargo run &
open http://localhost:3000/ui
open http://localhost:3000/spec
curl -X 'POST' \
'http://localhost:3000/todos' \
-H 'accept: application/json; charset=utf-8' \
-H 'Content-Type: text/plain; charset=utf-8' \
-d 'This is a task'