This changes the logic for when we infer [FromRoute] on an action parameter from *ALL* to *ANY*. This means that if a parameter occurs in any route on an ApiController, we will treat it as [FromRoute]. We think this is the best decision because it's less ambiguous. If a parameter appears in a route, it won't be eligible to be bound from query. I think that's good. If for some reason you want this kind of behavior (route or query) then we suggest breaking up the actions. This isn't very documentation friendly (swagger) so we don't suggest it. |
||
|---|---|---|
| .. | ||
| Microsoft.AspNetCore.Mvc.Abstractions.Test | ||
| Microsoft.AspNetCore.Mvc.Analyzers.Test | ||
| Microsoft.AspNetCore.Mvc.ApiExplorer.Test | ||
| Microsoft.AspNetCore.Mvc.Core.Test | ||
| Microsoft.AspNetCore.Mvc.Cors.Test | ||
| Microsoft.AspNetCore.Mvc.DataAnnotations.Test | ||
| Microsoft.AspNetCore.Mvc.Formatters.Json.Test | ||
| Microsoft.AspNetCore.Mvc.Formatters.Xml.Test | ||
| Microsoft.AspNetCore.Mvc.FunctionalTests | ||
| Microsoft.AspNetCore.Mvc.IntegrationTests | ||
| Microsoft.AspNetCore.Mvc.Localization.Test | ||
| Microsoft.AspNetCore.Mvc.Razor.Test | ||
| Microsoft.AspNetCore.Mvc.RazorPages.Test | ||
| Microsoft.AspNetCore.Mvc.TagHelpers.Test | ||
| Microsoft.AspNetCore.Mvc.Test | ||
| Microsoft.AspNetCore.Mvc.TestCommon | ||
| Microsoft.AspNetCore.Mvc.TestDiagnosticListener | ||
| Microsoft.AspNetCore.Mvc.ViewFeatures.Test | ||
| Microsoft.AspNetCore.Mvc.WebApiCompatShimTest | ||
| WebSites | ||
| Directory.Build.props | ||
| MvcTests.ruleset | ||