Skip to content
Discussion options

You must be logged in to vote

Edit: I figure the code but couldn't get it to work. The problem was with COORS if the server is not running from the actual URL. But after deploying I figured out that it works.

If someone is interested in how to do so, here is the simplest example,

"github.com/getkin/kin-openapi/openapi3"

server := fuego.NewServer(
	fuego.WithAddr(":2224"),
)

server.OpenAPI.Description().Servers = append(server.OpenAPI.Description().Servers, &openapi3.Server{
	URL:         "http://8.8.8.8:2224",
	Description: "Test API Server",
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tuxtlequino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant