Remove deprecated fallback to body ID from API v5

This commit is contained in:
Bogdan 2026-04-28 11:32:25 +03:00
parent bf5d48c76a
commit f54b9fe4a1

View file

@ -97,8 +97,7 @@ public Results<Created<TProviderResource>, NotFound> CreateProvider([FromBody] T
[Produces("application/json")]
public Results<Accepted<TProviderResource>, NotFound> UpdateProvider([FromRoute] int id, [FromBody] TProviderResource providerResource, [FromQuery] bool skipTesting = false, [FromQuery] SkipValidation skipValidation = SkipValidation.None)
{
// TODO: Remove fallback to Id from body in next API version bump
var existingDefinition = _providerFactory.Find(id) ?? _providerFactory.Find(providerResource.Id);
var existingDefinition = _providerFactory.Find(id);
if (existingDefinition == null)
{