Sorting endpoint URLs in Swagger-ui

2,526 views
Skip to first unread message

steven thein

unread,
May 9, 2014, 11:27:39 AM5/9/14
to swagger-sw...@googlegroups.com
Hi all,
I would like to display the endpoints in alphabetical order in Swagger-UI.
I am using Swagger-UI JS files on the client side and on the server side, I had implemented a class that extends com.wordnik.swagger.jaxrs.listing.ApiListing.
On the server side I have access to the Respone object in the overridden method  "public Response resourceListing()".
Is there any flag that I can set for sorting? Or I need to do it myself

In the UI, I would like to have 2 panes. In the left pane I would like to display the endpoints URLs and on the right pane I would like to display the operations of the selected endpoint URL.
Any suggestions?

Thanks
Steve



tony tam

unread,
May 9, 2014, 12:37:38 PM5/9/14
to swagger-sw...@googlegroups.com
Did you see the position attribute in the annotations?

steven thein

unread,
May 12, 2014, 8:30:30 AM5/12/14
to swagger-sw...@googlegroups.com
Thanks Tony, I will use the 'position' attribute.

Is there a way to support the following in Swagger UI?

In the UI, I would like to have 2 panes. In the left pane I would like to display the endpoints URLs and on the right pane I would like to display the operations of the selected endpoint URL.from the left pane.

Thanks
Steve

tony tam

unread,
May 12, 2014, 10:03:59 AM5/12/14
to swagger-sw...@googlegroups.com
Hi Steven, it's not supported in the default swagger-ui.  You could look here for some inspiration:


They have a really nice UI

steven thein

unread,
May 12, 2014, 10:29:06 AM5/12/14
to swagger-sw...@googlegroups.com
Thanks again Tony.
 That's the UI I am looking for.


Steve
Reply all
Reply to author
Forward
0 new messages