Sub Groups in Swagger UI

2,126 views
Skip to first unread message

AMaram

unread,
Aug 6, 2015, 3:37:53 PM8/6/15
to Swagger
Hi,
I have two controllers in my RESt API and Swagger UI looks like this where Test1 and Test2 are my controllers.

















------------------------------------------------------------------------------------------------


What I would like to have is like the following: The initial swagger screen should have Test, when I click on that it should display Test1 and Test2. Is it possible to do it in Swagger? I tried using nested controllers but it didn't work. Is there any other ways to achieve this kind of navigation in Swagger UI?



Thanks!!

Ron Ratovsky

unread,
Aug 6, 2015, 3:40:55 PM8/6/15
to Swagger
Swagger on its own doesn't provide support for sub-grouping.

If it's important to you, you can add the subgroups as part of the tags (for example, Test/Test1, Test/Test2) and then manipulate the swagger-ui to provide the extra grouping layer.

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------
http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------

AMaram

unread,
Aug 6, 2015, 6:10:03 PM8/6/15
to Swagger
Ron,
Thanks for the reply. By tags do you mean API routes? If so, I already have the routes setup in that way. 

Thanks!!


On Thursday, August 6, 2015 at 3:40:55 PM UTC-4, Ron wrote:
Swagger on its own doesn't provide support for sub-grouping.

If it's important to you, you can add the subgroups as part of the tags (for example, Test/Test1, Test/Test2) and then manipulate the swagger-ui to provide the extra grouping layer.
On Thu, Aug 6, 2015 at 3:37 PM, AMaram <archan...@gmail.com> wrote:
Hi,
I have two controllers in my RESt API and Swagger UI looks like this where Test1 and Test2 are my controllers.

















------------------------------------------------------------------------------------------------


What I would like to have is like the following: The initial swagger screen should have Test, when I click on that it should display Test1 and Test2. Is it possible to do it in Swagger? I tried using nested controllers but it didn't work. Is there any other ways to achieve this kind of navigation in Swagger UI?



Thanks!!

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ron Ratovsky

unread,
Aug 6, 2015, 6:19:57 PM8/6/15
to Swagger
No, I mean tags. Tags are used for grouping of operations in Swagger 2.0. In the screenshot you provided, Test1 and Test 2 are tags.

On Thu, Aug 6, 2015 at 6:10 PM, AMaram <archan...@gmail.com> wrote:
Ron,
Thanks for the reply. By tags do you mean API routes? If so, I already have the routes setup in that way. 

Thanks!!

On Thursday, August 6, 2015 at 3:40:55 PM UTC-4, Ron wrote:
Swagger on its own doesn't provide support for sub-grouping.

If it's important to you, you can add the subgroups as part of the tags (for example, Test/Test1, Test/Test2) and then manipulate the swagger-ui to provide the extra grouping layer.
On Thu, Aug 6, 2015 at 3:37 PM, AMaram <archan...@gmail.com> wrote:
Hi,
I have two controllers in my RESt API and Swagger UI looks like this where Test1 and Test2 are my controllers.

















------------------------------------------------------------------------------------------------


What I would like to have is like the following: The initial swagger screen should have Test, when I click on that it should display Test1 and Test2. Is it possible to do it in Swagger? I tried using nested controllers but it didn't work. Is there any other ways to achieve this kind of navigation in Swagger UI?



Thanks!!

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------
http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages