RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Nested operation tags

Open dsparkplug opened this issue 2 years ago • 3 comments

Hi,

Is it currently possible to display nested tags in the left-hand navigation.

e.g. If the operation Tags are defined as "Mammal|Elephant", "Mammal|Monkey" and "Bird|Parrot"

Mammal                                  V

  Elephant                              V
  GET Get a elephant by id
  PUT Add a new elephant

  Monkey                                V
  GET Get a monkey by id
  PUT Add a new monkey

Bird                                    V

 Parrot                                 V
  GET Get a parrot by id
  PUT Add a new parrot

If not, is this planned in the future?

dsparkplug avatar Sep 26 '23 02:09 dsparkplug

right now if you have routes with multiple tags then it ends up "duplicating" the route into each tag accordion. slightly irritating with a largeish api. resorted to finding all tags and turning them into a pipe separated string

tags = ["instances","accounts","meters"]

becomes

tags = ["instances | accounts | meters"]

image

(trying to figure out how to have all the tag groups closed now tho.. i cant get the x-tag-expanded thing to work :(

WilliamStam avatar Nov 06 '23 11:11 WilliamStam

What is a nested Tag? Is that in the spec?

wparad avatar Nov 06 '23 11:11 wparad

What is a nested Tag? Is that in the spec?

https://github.com/swagger-api/swagger-ui/issues/5969

not in the spec. but it does fall part of the display side which is what rapidoc does.

WilliamStam avatar Nov 06 '23 12:11 WilliamStam