Apistos

An actix-web wrapper similar to paperclip to generate OAS 3.0 documentation.
Installation
[]
#schemars = "0.8"
# sadly we currently rely on a fork to fix multiple flatten for enums, related PR can be found here: https://github.com/GREsau/schemars/pull/264
= { = "apistos-schemars", = "0.8" }
= "0.1"
Usage example
Wrap your regular actix-web app using apistos types.
Most of these types are drop-in types for actix-web one's.
use ;
use Json;
use CreatedJson;
use api_operation;
use ApiComponent;
use ApiErrorComponent;
use Spec;
use ;
use JsonSchema;
use ;
use Error;
use Ipv4Addr;
pub async
async
For a complete example, see the sample petstore.
Feature flags
| name | description | extra dependencies |
|---|---|---|
chrono |
Enables documenting types from chrono |
chrono |
multipart |
Enables documenting types from actix-multipart |
actix-multipart |
rust_decimal |
Enables documenting types from rust_decimal |
rust_decimal = |
uuid |
Enables documenting types from uuid |
uuid |
url |
Enables documenting types from url |
url |
extras |
Enables chrono, multipart, rust_decimal, uuid and url features |
All from previous features |
About us
apistos is provided by Netwo.
We use this crate for our internal needs and therefore are committed to its maintenance, however we cannot provide any additional guaranty. Use it at your own risks.
While we won't invest in any feature we don't need, we are open to accept any pull request you might propose.
We are a France based full-remote company operating in the telecom industry. If you are interested in learning more, feel free to visit our career page.