>Why are you passing data (a dictionary) on the URL via [HttpGet]? SHouldn't that go into an [HttpPost] and then [FromBody]? This seems bad behavior for a REST service.
>
I have auto-complete textbox on the page. For this to function I need to pass the id (int) and a string. I can pass them as parameters, but I would need to hash the string then before sending to API. I was thinking that sending a simple object (KeyValuePair) would be better than sending two parameters.
I can also use a post instead of the get, but I was thinking since the purpose is to receive information and not really post anything back, get would be a better choice.
If it's not broken, fix it until it is.
My Blog