Swashbuckle.aspnetcore: Missing controllers after applying ApiExplorerSettings attribute

Created on 16 Dec 2017  路  2Comments  路  Source: domaindrivendev/Swashbuckle.AspNetCore

Once ApiExplorerSettings attribute applied on controller or method level the appropriate controller methods or particular method doesn't appear anymore in swagger UI.

Using the following version of the package: https://www.nuget.org/packages/Swashbuckle.AspNetCore.SwaggerUI/1.1.0

Most helpful comment

As described here, ApiExplorerSettings.GroupName is used to assign action descriptions to a specific Swagger JSON document. If the value is null (i.e. the default), then the action will be included in ALL Swagger documents. If you set it to a specific value, then the action will only be included if you request the corresponding Swagger document. For example, if you have the following action

[ApiExplorerSettings(GroupName = "v3")]
public IActionResult Get()
{
   ...
}

Then it will only be included with the following Swagger document:

http://example.com/swagger/v3/swagger.json

All 2 comments

Have just seen this too. Any update? Also using 1.1.0

As described here, ApiExplorerSettings.GroupName is used to assign action descriptions to a specific Swagger JSON document. If the value is null (i.e. the default), then the action will be included in ALL Swagger documents. If you set it to a specific value, then the action will only be included if you request the corresponding Swagger document. For example, if you have the following action

[ApiExplorerSettings(GroupName = "v3")]
public IActionResult Get()
{
   ...
}

Then it will only be included with the following Swagger document:

http://example.com/swagger/v3/swagger.json

Was this page helpful?
0 / 5 - 0 ratings