I have a basic HttpGet method where people can add an indefinite amount of string params. So basically this means that you can navigate to api/controller/foo
, api/controller/foo/bar
, api/controller/foo/bar/biz
, etc
I tried going at it like below but this doesn't seem to work
[HttpGet("{container}/{prefixes}")]
public async Task<ActionResult<string>> Get(string container, params string[] prefixes)