In springdoc, is there a way to serve static .yml files and put them in groups so that they appear in a pulldown?

Viewed 32

I can group apis using dynamic generation: dynamic

But when serving static files, it's like this: static

Is there a way to create groups for static files so they can be accessed via pulldown like the dynamic way?

Edit:

This guy's question answered it for me: Springdoc dynamic server value using YAML file

But he expressed it as an array in the yaml file, when springdoc asks for a set, so it should be expressed as:

 springdoc:
   api-docs:
     enabled: false
   swagger-ui:
     urls:
       -
         name: Group Name
         display-name: Group Display Name
         url: my-static-swagger-file.yml
       - 
         name: Group Name 2
         display-name: Group Display Name 2
         url: my-static-swagger-file2.yml
 
0 Answers
Related