netwo-io/apistos

Swagger UI for apistos like utoipa_swagger_ui

hectordufau opened this issue · 3 comments

Hi.

Is it possible to use utoipa_swagger_ui (actix-web feature) with apistos, or do you have plan to implement a new one?

I tried something like this with no success:

let swagger = SwaggerUi::new("/{_:.*}").url("/openapi.json", ApiDoc::openapi()); App::new() .service(scope("/docs") .service(resource("").to(swagger)) ) .build("/openapi.json")
image

Would you like to share a suggestion?

Hi !

Sadly this is not possible to use utoipa in combinaison with this project.

We will probably look into adding a feature for SwaggerUI and one for RapiDoc in the near future.

Hi !

Utoipa was only a try.....I understand that it is no possible...don't worry.

However I think adding an swagger UI as a part of apistos solution will be great, becoming apistos + actix like FastAPI for Python.

Thanks for attention.

Rapidoc, Redoc and Swagger have been added with the possibility to add any other UI using apistos-plugins. This will be available in a 0.2.0 version in a few minutes.