-
Hi again!
I have no idea where problem source is (something goes wrong with deploy or something deleted after build, maybe..?). If someone has any ideas - please, share it with me! UPD: I found the problem. When app was builded, deploy mechanism get's only binary file |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So you cannot see Swagger UI after you have build the docker container? Here is an example with Docker: https://github.com/juhaku/utoipa/tree/master/examples/axum-utoipa-nesting-vendored Here you can find the |
Beta Was this translation helpful? Give feedback.
So you cannot see Swagger UI after you have build the docker container?
utoipa-swagger-ui
usesrust-embed
to embed the Swagger UI files into the binary. Therust-embed
does not embed files on debug build to the binary. Instead you need to either build the project with--release
flag or enableddebug-embed
feature. https://github.com/juhaku/utoipa?tab=readme-ov-file#swagger-ui-returns-404-notfound-from-built-binaryHere is an example with Docker: https://github.com/juhaku/utoipa/tree/master/examples/axum-utoipa-nesting-vendored
Here you can find the
utoipa-swagger-ui
feature flags: https://github.com/juhaku/utoipa/tree/master/utoipa-swagger-ui#crate-features