I\'m having some problems getting a date range query accepted by my WebAPI. As as far as I can tell from everything I\'ve read this should be working but I still get
:
is a reserved character in the URL but it's acceptable in a query string. So if it works for your routing you could simply use:
[System.Web.Http.HttpGet]
[GET("range")]
public HttpResponseMessage Get(DateTime start, DateTime end)
and your URL request can look like this:
http://localhost:51258/plots/range?start=2013-07-29T21:58:39&end=2013-08-05T21:58:39