All Projects β†’ openapi β†’ actix-swagger

openapi / actix-swagger

Licence: MIT License
Swagger code generator for actix-web framework

Programming Languages

rust
11053 projects
Makefile
30231 projects

Projects that are alternatives of or similar to actix-swagger

Openapi Mock
OpenAPI mock server with random data generation
Stars: ✭ 202 (+248.28%)
Mutual labels:  swagger, openapi3
Redoc
πŸ“˜ OpenAPI/Swagger-generated API Reference Documentation
Stars: ✭ 15,935 (+27374.14%)
Mutual labels:  swagger, openapi3
Swaggerprovider
F# generative Type Provider for Swagger
Stars: ✭ 201 (+246.55%)
Mutual labels:  swagger, openapi3
Swagger Codegen
swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
Stars: ✭ 13,859 (+23794.83%)
Mutual labels:  swagger, openapi3
Mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Stars: ✭ 3,448 (+5844.83%)
Mutual labels:  swagger, openapi3
Swagger Node Codegen
An OpenAPI 3.x/Swagger 2 code generator for Node.js
Stars: ✭ 189 (+225.86%)
Mutual labels:  swagger, openapi3
Openapi Directory
🌐 Wikipedia for Web APIs. Directory of REST API definitions in OpenAPI 2.0/3.x format
Stars: ✭ 2,635 (+4443.1%)
Mutual labels:  swagger, openapi3
Prism
Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.
Stars: ✭ 2,484 (+4182.76%)
Mutual labels:  swagger, openapi3
Spot
Spot is a concise, developer-friendly way to describe your API contract.
Stars: ✭ 230 (+296.55%)
Mutual labels:  swagger, openapi3
Openapi Codegen
OpenAPI 3.0 CodeGen plus Node.js minus the Java and emojis
Stars: ✭ 224 (+286.21%)
Mutual labels:  swagger, openapi3
openapi-schema-validator
OpenAPI schema validator for Python
Stars: ✭ 35 (-39.66%)
Mutual labels:  swagger, openapi3
shipengine-openapi
The official OpenAPI 3.0 definitions for ShipEngineβ„’
Stars: ✭ 13 (-77.59%)
Mutual labels:  swagger, openapi3
Openapi Spec Validator
OpenAPI Spec validator
Stars: ✭ 161 (+177.59%)
Mutual labels:  swagger, openapi3
Swagger Js
Javascript library to connect to swagger-enabled APIs via browser or nodejs
Stars: ✭ 2,319 (+3898.28%)
Mutual labels:  swagger, openapi3
Validator Badge
Validate your Swagger JSON/YAML today!
Stars: ✭ 158 (+172.41%)
Mutual labels:  swagger, openapi3
Fastapi Gino Arq Uvicorn
High-performance Async REST API, in Python. FastAPI + GINO + Arq + Uvicorn (w/ Redis and PostgreSQL).
Stars: ✭ 204 (+251.72%)
Mutual labels:  swagger, openapi3
Rapipdf
PDF generation from OpenAPI / Swagger Spec
Stars: ✭ 132 (+127.59%)
Mutual labels:  swagger, openapi3
Prance
Resolving Swagger/OpenAPI 2.0 and 3.0 Parser
Stars: ✭ 133 (+129.31%)
Mutual labels:  swagger, openapi3
Openapi Diff
Utility for comparing two OpenAPI specifications.
Stars: ✭ 208 (+258.62%)
Mutual labels:  swagger, openapi3
Full Stack Fastapi Couchbase
Full stack, modern web application generator. Using FastAPI, Couchbase as database, Docker, automatic HTTPS and more.
Stars: ✭ 243 (+318.97%)
Mutual labels:  swagger, openapi3

actix swagger

Usage

Not for production use yet

# Add cargo command to simplify usage
cargo install cargo-swagg

# Add support library to your project (via cargo-edit or manual)
cargo add actix-swagger

# Generate your code with cargo subcommand
cargo swagg ./openapi.yaml --out-file ./src/api.rs

# Format file after
rustfmt ./src/api.rs

Development

It uses insta for snapshot testing.

Install cargo-insta to better review experience.

Members

  • cargo-actix β€” support library, contents typed response named Answer and custom Method and ContentType that supports in swagg
  • swagg β€” library that transforms openapi3 (yaml|json) spec to rust code
  • cargo-swagg β€” same as swagg but for cli
  • demo β€” checks that generated code is compiles

Demo

# to convert ./demo/openapi.yaml to ./demo/src/lib.rs
# format ./demo/src/lib.rs
# and check just run
make
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].