-
tokio_postgres
-
use of
tokio_pg_mapper
for postgres data mapping -
deadpool_postgres
for connection pooling -
dotenv
+config
for configurationcargo run
Using a different terminal send an HTTP POST request to the running server:
Send a ping:
echo '{"value": "pong"}' | http -f --json --print h POST http://127.0.0.1:8080/ping/post
Retrieve pings:
http http://127.0.0.1:8080/ping/get