0

When I use the following RoutePrefix, it works

[RoutePrefix("api/v1/Home")]

But following doesn't

[RoutePrefix("api/v1.0/Home")]

Can't we use Versions with decimal?

superachu
  • 823
  • 3
  • 16
  • 34
  • what happens when you url encode the period to %2E ? for example "api/v1%2E0/Home" ? – jeriley Oct 10 '17 at 18:47
  • http://abcdefg.com:1300/Help/Api/POST-api-v1.0-Home-MethodName – superachu Oct 10 '17 at 19:05
  • I have a feeling that answers to [this](https://stackoverflow.com/questions/20998816/dot-character-in-mvc-web-api-2-for-request-such-as-api-people-staff-45287) post may help – pcdev Oct 11 '17 at 00:52
  • Also try [this](https://stackoverflow.com/questions/11728846/dots-in-url-causes-404-with-asp-net-mvc-and-iis/12151501) one – pcdev Oct 11 '17 at 00:54

0 Answers0