I’m new to .Net, but not cgi programming and I’m having trouble finding concrete examples of the magic that .net does to map querystring parameters.
I have a controller endpoint that looks like this:
[HttpGet("search/{search}"]
public async Task<ActionResult<List<Results>>> SearchStuff(string search, [FromQuery]List<string> description)
This endpoint is supposed to accept requests that look like, .../search/searchme?description=asd&description=qwe&description=zxc
It took me forever to find the notation for the [FromQuery] which ensures it doesn’t try and convert the List argument into a body subsmission.
Can anyone point me to the documentation for all supported cgi notations and what they do?