I have a route with an optional parameter:
[Route("{categoryId?}")] public HttpResponseMessage Get(int? categoryId=null)
However, when I do not provide a value for categoryId , the call includes {categoryId?} In the request itself ...
http://myhost/api/%7BcategoryId%7D
source share