-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rapidoc support for utoipa and update todo examples. Add new warp-rapidoc example to demonstrate rapidoc without predefined framework integration. Add utoipa-rapidoc CI setup.
- Loading branch information
Showing
28 changed files
with
877 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = ["utoipa", "utoipa-gen", "utoipa-swagger-ui", "utoipa-redoc"] | ||
members = [ | ||
"utoipa", | ||
"utoipa-gen", | ||
"utoipa-swagger-ui", | ||
"utoipa-redoc", | ||
"utoipa-rapidoc", | ||
] | ||
|
||
[workspace.metadata.publish] | ||
order = ["utoipa-gen", "utoipa", "utoipa-swagger-ui", "utoipa-redoc"] | ||
order = [ | ||
"utoipa-gen", | ||
"utoipa", | ||
"utoipa-swagger-ui", | ||
"utoipa-redoc", | ||
"utoipa-rapidoc", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[package] | ||
name = "todo-warp-rapidoc" | ||
description = "Simple warp todo example api with utoipa and utoipa-rapidoc" | ||
version = "0.1.0" | ||
edition = "2021" | ||
license = "MIT" | ||
authors = [ | ||
"Elli Example <example@example.com>" | ||
] | ||
|
||
[dependencies] | ||
tokio = { version = "1", features = ["full"] } | ||
warp = "0.3" | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
env_logger = "0.10.0" | ||
log = "0.4" | ||
futures = "0.3" | ||
utoipa = { path = "../../utoipa" } | ||
utoipa-rapidoc = { path = "../../utoipa-rapidoc" } | ||
|
||
[workspace] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# warp with utoipa-rapidoc | ||
|
||
This is simple Todo app example with warp and utoipa-rapidoc OpenAPI viewer. | ||
|
||
For security restricted endpoints the super secret API key is: `utoipa-rocks`. | ||
|
||
Head to `http://localhost:8080/rapidoc` for the demo. | ||
|
||
run | ||
```rust | ||
RUST_LOG=debug cargo run | ||
``` |
Oops, something went wrong.