From 2b0f4e18e78f5912c7708d7133cf6fa332b31154 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Thu, 18 May 2023 19:28:49 -0500 Subject: [PATCH] Add `forceSave` to the OpenAPI docs (#1670) --- src/Prowlarr.Api.V1/ProviderControllerBase.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Prowlarr.Api.V1/ProviderControllerBase.cs b/src/Prowlarr.Api.V1/ProviderControllerBase.cs index 0c61e5ed3..a5faf958d 100644 --- a/src/Prowlarr.Api.V1/ProviderControllerBase.cs +++ b/src/Prowlarr.Api.V1/ProviderControllerBase.cs @@ -6,7 +6,6 @@ using Microsoft.AspNetCore.Mvc; using NzbDrone.Core.ThingiProvider; using NzbDrone.Core.Validation; using NzbDrone.Http.REST.Attributes; -using Prowlarr.Http.Extensions; using Prowlarr.Http.REST; namespace Prowlarr.Api.V1 @@ -76,10 +75,9 @@ namespace Prowlarr.Api.V1 [RestPutById] [Produces("application/json")] - public ActionResult UpdateProvider(TProviderResource providerResource) + public ActionResult UpdateProvider([FromBody] TProviderResource providerResource, [FromQuery] bool forceSave = false) { var providerDefinition = GetDefinition(providerResource, true, false, false); - var forceSave = Request.GetBooleanQueryParameter("forceSave"); // Only test existing definitions if it is enabled and forceSave isn't set. if (providerDefinition.Enable && !forceSave)