Grouping Actions with multiple levels.

450 views
Skip to first unread message

Ken Faulkner

unread,
Feb 2, 2016, 12:26:48 AM2/2/16
to Swagger
Hi

Sorry if this is a common question, but I can't find any answers on this.

I currently have an existing API and the Swagger UI shows the expected set of Actions by the Controller name (and then each expands to have the appropriate GET, POST etc under them).

I want to expand my API to include a set of functions that I'd like to be separate (from a Swagger UI pov). So instead of

Action1:
   POST
   GET
   PUT 

Action2:
   POST
   GET
   PUT 



I'd like:


Group1:
  Action1:
     POST
     GET
     PUT 

  Action2:
     POST
     GET
     PUT 


Group2:
  Action3:
     POST
     GET
     PUT 

  Action4:
     POST
     GET
     PUT 


I hope that makes sense.


Is this possible? Btw, I'm doing this on .NET so technically I'm using the Swashbuckle library, but thought I'd post here.

Thanks

Ken

Ron Ratovsky

unread,
Feb 2, 2016, 3:28:17 PM2/2/16
to swagger-sw...@googlegroups.com
There’s no way to have a two-level grouping.
You can have Group1 and Group2, and put all the operations under it. The groups are just the tags assigned to the operations.

--
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.

Ken Faulkner

unread,
Feb 2, 2016, 4:11:42 PM2/2/16
to swagger-sw...@googlegroups.com
Hi Ron,

Have tried the group1/2 with all operations under it. Seemed messy, so thought I'd check if there were alternatives.

Oh well, will figure something out.

Thanks for the confirmation.

Ken

--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/c55hp5Yn-kY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages