title: Listing API Methods Under Multiple Groups
body: <p>I have Swashbuckle annotated code that looks like this:</p>
  
  <pre><code>[Route("api/Subscribers/{id}/[controller]")]
  [Route("api/Organizations/{id}/[controller]")]
  public class AddressesController : Controller
  {
      [HttpGet("{aid}")]
      [SwaggerResponse(HttpStatusCode.OK, Type = typeof(PostalRecord))]
      public async Task&lt;IActionResult&gt; GetAddress(Guid id, Guid aid)
      {
         //do something
      }
  </code></pre>
  
  <p>I would like to use the <a href="https://stackoverflow.com/questions/34175018/grouping-of-api-methods-in-documentation-is-there-some-custom-attribute"><code>GroupActionsBy</code> customization, as shown in this example</a>, but I want to have the above <code>GetAddress</code> method simultaneously included into two separate groups that correspond to the two route prefixes shown:</p>
  
  <pre><code>[Route("api/Subscribers/{id}/[controller]")]
  [Route("api/Organizations/{id}/[controller]")]
  </code></pre>
  
  <p>In other words, I want the same method to be listed under both:</p>
  
  <ul>
  <li>Subscribers</li>
  <li>Organizations</li>
  </ul>
  
  <p><strong>How can this be done?</strong></p>
  
  <p>Incidentally, I'm working with ASP.NET Core (<code>dnx46</code>).  If it is not yet possible to do this with the ASP.NET Core version of Swashbucklee, then a full-CLR (Web API 2.2?) example would still be appreciated.</p>
  
  <p>Also, for a more complete story of what I'm trying to do - I have a <a href="https://stackoverflow.com/questions/36522617/route-disambiguation-in-asp-net-core-mvc-6">separate SO post</a>.</p>
  
  <h2>Update</h2>
  
  <p>The answer given by @venerik got me close to the solution.  When I apply his sample code...</p>
  
  <pre><code>[SwaggerOperation(Tags = new []{"Subscribers", "Organizations"})]
  </code></pre>
  
  <p>...this causes the Swagger listings to look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/CbCSG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CbCSG.png" alt="enter image description here"></a></p>
  
  <p>In short, the "Addresses" endpoints are now appearing under the headings that I want but, as the red arrow indicates, they are now also being "cross-listed"; I don't want the "Subscribers" endpoint being listed under the "Organizations" endpoint.</p>
  
  <p>I'm suspicious that a [SwaggerOperationFilter] might be "the other half" of the answer, if I can make it remove the cross-listed entries.  I've not played with that mechanism before.</p>
  
  <h2>Angst</h2>
  
  <p>Also, it is very unfortunate that [SwaggerOperation] can only be applied on methods/actions.  I would rather apply it to the class itself:</p>
  
  <pre><code>[Route("api/Subscribers/{id}/[controller]")]
  [Route("api/Organizations/{id}/[controller]")]
  [SwaggerOperation(Tags = new []{"Subscribers", "Organizations"})]
  public class AddressesController : Controller
  {
  </code></pre>
  
  <p>Is there any remedy for this?</p>