/domain-axum

Domain driven design backend using Axum and Postgres.

Primary LanguageRust

Create post

curl -X POST http://127.0.0.1:3000/v1/posts -H 'Content-Type: application/json' -d '{"title":"My title","body":"A who;e test body"}'

Get all posts

curl http://127.0.0.1:3000/v1/posts 

Get a single post

curl http://127.0.0.1:3000/v1/posts/485aefde-fc8a-44d6-addf-1ec4034a10c5