I have an ASP.NET Web API (version 4) REST service where I need to pass an array of integers.
Here is my action method:
You just need to add [FromUri] before parameter, looks like:
[FromUri]
GetCategories([FromUri] int[] categoryIds)
And send request:
/Categories?categoryids=1&categoryids=2&categoryids=3