A fully functional CRUD API for a Post resource using Actix-Web, storing data in-memory tohandle GET, POST, PUT, DELETE requests, core operations in any RESTful service.
cargo run
curl -X POST -H "Content-Type: application/json" \
-d '{"id": 1, "title": "Hello", "content": "Actix is awesome"}' \
http://127.0.0.1:8080/posts
curl http://127.0.0.1:8080/posts
curl -X PUT -H "Content-Type: application/json" \
-d '{"id": 1, "title": "Updated", "content": "Edited content"}' \
http://127.0.0.1:8080/posts/1
curl -X DELETE http://127.0.0.1:8080/posts/1