title: .NET Core 2.1 Swashbuckle - group controllers by area
body: <p>My situation is rather simple. I have a very large .NET Core 2.1 MVC/WebApi divided into several Areas, representing different modules of my system. I use Swagger (SwashBuckle) and it works very well. My routing are like <code>{area}/{controller}/{action}</code>.</p>
  
  <p>In Swagger UI, every action is grouped into the controllers (standard behaviour). My list of controllers and operations is becoming very very large and hard to grasp. Because of that, i would love if Swagger could divide my controllers into the different areas! Making it possible to collapse <code>area x</code> and every controller within <code>area x</code>.</p>
  
  <p>I really miss this feature or a way to implement it myself! Any ideas are appreciated!</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I've tried annotating actions with tags.</p>
  
  <p>This gives me:</p>
  
  <pre><code>- Area 1
      - MethodFromControllerA()
      - MethodFromControllerB()
  - Area 2
      - MethodFromControllerC()
      - MethodFromControllerD()
  </code></pre>
  
  <p>What i want:</p>
  
  <pre><code>- Area 1
      - ControllerA
          - MethodFromControllerA()
      - ControllerB
          - MethodFromControllerB()
  - Area 2
      - ControllerC
          - MethodFromControllerC()
      - ControllerD
          - MethodFromControllerD()
  </code></pre>
  
  <p><strong>Update 2</strong></p>
  
  <p>Another option would be to have several specifications for each of my areas. Like different Swagger UIs for every area. Possible?</p>