Possible to have multiple swagger definitions #182
Unanswered
StickNitro
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking into creating a REST API with golang and have a requirement to provide a different set of endpoints for customers vs operations, i.e.
So I am trying to see if I can replicate the behavior I see in an ASP.NET WebApi project using swagger that supports the ability to select a definition which would then display the swagger for either
/api
or/ops
What I am looking for is that the
/api/v1/todos
routes are in 1 definition and the/ops/v1/todos
are in another definition such that when you navigate to the/swagger
route you would see these definitions listed in the Select a definition dropdown, it currently just listsdoc.json
anddoc.yaml
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions