I am using NancyFx to build a web API, but I am facing some problems when getting parameters from the URL.
I need to send, to the API, the request .../consumptions/hourly?from=1402012800000&tags=%171,1342%5D&to=1402099199000
and catch the value of the parameters: granularity, from, tags and to. I tried several approches and none worked. I tried, for example,
Get["consumptions/{granularity}?from={from}&tags={tags}&to={to}"] = x =>
{
...
}
How can I do this?
Luis Santos