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

Commented Issue: Helpage UI to show the root request url path [1153]

$
0
0
A very minor user experience issue.

For the following controller:
```
[RoutePrefix("api/values")]
public class ValuesController : ApiController
{
[HttpGet("")]
[HttpGet("/")]
public IEnumerable<string> GetAll()
{
return new string[] { "value1", "value2" };
}
}
```
There would be 2 routes like below:
1. config.Routes.MapHttpRoute("routeName", "", new { }, new { httpMethod = HttpMethodConstraints[GET] }, new { actions = [Values.GetAll()] });
2. config.Routes.MapHttpRoute("routeName", "api/values", new { }, new { httpMethod = HttpMethodConstraints[GET] }, new { actions = [Values.GetAll()] });

__Issue__:
For the route '1', HelpPage UI says "GET". (__attached__ snapshot).

It would be clear if it said "GET /"
Comments: It's not a very common scenario to have an API at the root, so we'll consider this in vNext.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>