Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Unassigned: ApiExplorer not returning descriptions in certain scenarios [1213]

$
0
0
__Scenario__:
User is trying to use UriPathExtensionMappings along with attribute routing. User would like to see the the appropriate information on the HelpPage(which uses ApiExplorer behind the scenes).

__Issue__:
For the following controller and actions, ApiExplorer does not return any descriptions.

```
[RoutePrefix("api/values")]
public class ValuesController : ApiController
{
[HttpGet("")]
[HttpGet("~/api/values.{ext}")]
public IEnumerable<string> GetAll()
{
return new string[] { Configuration.Services.GetApiExplorer().ApiDescriptions.Count.ToString() };
}
}

```
__Attached__ a standalone katana selfhost repro.

Viewing all articles
Browse latest Browse all 7215

Trending Articles