actix-web-rest
- Opiniated toolkit to build restful API using actix-web.
This crate contains utility to speed up the development of RESTful API using actix-web:
rest_error
attribute macros
Why ?
:zap: Gotta go fast!
:student: Learn procedural macros.
Getting started
# Create a new project.
cargo init my_api && cd my_api
# Add actix-web-rest to your project.
cargo add actix-web-rest actix-web anyhow thiserror
Then overwrite main.rs
with the following content:
use ;
use ;
use anyhow;
// internal_error add an InternalError(#[from] anyhow::Error).
async
async
curl -i http://localhost:8080/foo
curl -i http://localhost:8080/bar
curl -i http://localhost:8080/baz
Contributing
If you want to contribute to actix-web-rest
to add a feature or improve the code contact
me at negrel.dev@protonmail.com, open an
issue or make a
pull request.
:stars: Show your support
Please give a :star: if this project helped you!
:scroll: License
MIT © Alexandre Negrel