In an ASP.NET WebApi, you can do the following:
public class Something {
public int Foo;
public string Bar;
}
public class SomethingController : ApiController {
public string Get(Something s) {
return "whatever";
}
}
The URL to that will be:
"http://myapi/Something?s.Foo=123&s.Bar=abc"
Note the: s.Foo= and s.Bar= notation.
It is also possible to pass arrays in a URL like this:
"http://...?array=1&array=2&array=3"
Is there any notation for dictionaries? One like this for example:
public string Get(Dictionary<string, string> d)
Also, what are the other possibilities for data structures in an ASP.NET URL?
I can't find any documentation to that.
EDIT
The duplicate has nothing to do with what I asked.