From 296773387e893868f36accd42621c0362ca63dcd Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 18 May 2023 13:17:36 +0300 Subject: [PATCH] Add `forceSave` to the OpenAPI docs (cherry picked from commit ef0b91b45bc7f1295efb03dc44630f1442e18be1) Fixes #3683 --- src/Lidarr.Api.V1/ProviderControllerBase.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Lidarr.Api.V1/ProviderControllerBase.cs b/src/Lidarr.Api.V1/ProviderControllerBase.cs index 2a0279851..389a591de 100644 --- a/src/Lidarr.Api.V1/ProviderControllerBase.cs +++ b/src/Lidarr.Api.V1/ProviderControllerBase.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Linq; using FluentValidation; using FluentValidation.Results; -using Lidarr.Http.Extensions; using Lidarr.Http.REST; using Lidarr.Http.REST.Attributes; using Microsoft.AspNetCore.Mvc; @@ -74,10 +73,9 @@ namespace Lidarr.Api.V1 } [RestPutById] - 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)