Open NexVeridian opened 1 week ago
related #855
cargo check -F openapi cargo nextest run --test-threads 1 -F openapi
enable: true
openapi: redoc: !Redoc url: /redoc spec_json_url: /redoc/openapi.json spec_yaml_url: /redoc/openapi.yaml scalar: !Scalar url: /scalar spec_json_url: /scalar/openapi.json spec_yaml_url: /scalar/openapi.yaml swagger: !Swagger url: /swagger-ui spec_json_url: /api-docs/openapi.json spec_yaml_url: /api-docs/openapi.yaml
.merge(Redoc::with_url("/redoc", api.clone()))
openapi
swagger-ui
redoc
scalar
SecurityAddon
impl Modify for SecurityAddon
src/tests_cfg/db.rs:86:1
src/tests_cfg/config.rs
test_from_folder_openapi()
utoipa::path
get
get(get_action_openapi)
routes!(get_action_openapi)
AppContext
api_router.routes(method.with_state::<AppContext>(()))
.layer
cc @DenuxPlays
Looks like a good start.
I think the yaml also should contain a few other things:
related #855
TODO:
enable: true
since that's handled by the feature.merge(Redoc::with_url("/redoc", api.clone()))
openapi
into featureswagger-ui
redoc
scalar
SecurityAddon
impl Modify for SecurityAddon
somewhere, maybe with configsrc/tests_cfg/db.rs:86:1
src/tests_cfg/config.rs
test_from_folder_openapi()
utoipa::path
utoipa::path
if possibleget
inget(get_action_openapi)
is still grabbed withroutes!(get_action_openapi)
AppContext
- check thatapi_router.routes(method.with_state::<AppContext>(()))
doesn't break the ctx with.layer
cc @DenuxPlays