SwaggerUI embed.FS not rendering when hit the endpoint #34
-
Hey, Is there anything missing for rendering the swagger UI download? What I'm doing basically is: `
` |
Beta Was this translation helpful? Give feedback.
Answered by
MarioCarrion
Sep 18, 2021
Replies: 1 comment
-
@dibrito Apologies for the late reply it looks like I either missed the notification or I never got it. If you're a getting a 404 when hitting the http://localhost:8080/openapi3.json endpoint then it means it wasn't added to the router. The code doing that is here, which registers the endpoints with something like: r.HandleFunc("/openapi3.json", func(w http.ResponseWriter, r *http.Request) {
renderResponse(w, &swagger, http.StatusOK)
}).Methods(http.MethodGet) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MarioCarrion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@dibrito Apologies for the late reply it looks like I either missed the notification or I never got it.
If you're a getting a 404 when hitting the http://localhost:8080/openapi3.json endpoint then it means it wasn't added to the router. The code doing that is here, which registers the endpoints with something like: