Open ritasker opened 5 years ago
I think lower in the list higher the priority. eg
{
"id": 123
}
would be overridden by /my-endpoint/246
were the route template is /my-endpoint/{id}
.
Does CmdR need to consider people using the [From*]
attributes?
[FromBody]
[FromQuery]
[FromHeader]
Or just use the TryParse / BindAsync methods. https://docs.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-6.0#custom-binding
Request coming into a handler need a model to capture the request data. Data should be bound from:
Asp.Net Docs for binding precedence