I want to turn a request like
foo.com/missions?type=flight&location=USA
into a multidimensional array or a map so that I can use them later in a filter.
The names of the parameters and the number of parameters are all variable.
This is in C# using WEB API.
To clarify:
[Route("missions")]
[HttpGet]
public HttpResponseMessage SearchMissions(Dictionary<string, string> filters) // Dictionary may not be the most appropriate; I'm new to C#
{
...
}
The keys are type and location and the values are flight and USA.