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