I'm looking to pass a list of integers (ids) into a .NET core WebApi in the same manner that stack overflow does:
https://api.stackexchange.com/docs/questions-by-ids
Is this possible to strongly type the parameter or do I just accept a string and parse it?
Just to be clear I want the url to be in the format http://myapi/products/1,2,3,4,5 or http://myapi/products/1;2;3;4;5
as I would like the URL to be clean like the stackoverflow link I posted