Is it possible to combine [FromRoute] and [FromBody] in ASP.NET Core?
It’s doable by a custom model binder as mentioned in the comment. Here is a few code snippets to wire everything up, with the example you can send a http request with the following JSON body to an API /api/cats?From=james&Days=20 { “Name”:””, “EyeColor”:”Red” } A few classes, you can find them here as well: https://github.com/atwayne/so-51316269 … Read more