aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan <juancalderonmicro@hotmail.com>2026-03-02 13:15:48 -0500
committerJuan <juancalderonmicro@hotmail.com>2026-03-03 11:53:38 -0500
commit44f7d2b854d092de86def8ee73ab285c5409190e (patch)
tree4e86fa9d7ce4b48dc93c8c6598993bea011fa4ee
parentb6f4ffd2514952462c9aec1fcae8c934f4db0393 (diff)
Add missing ProducesResponseType(401) to InitiateQuickConnect
The InitiateQuickConnect endpoint returns HTTP 401 Unauthorized when Quick Connect is disabled, and this was already documented in the XML response comment, but the corresponding [ProducesResponseType] attribute was missing, causing the OpenAPI/Swagger spec to omit it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--Jellyfin.Api/Controllers/QuickConnectController.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/QuickConnectController.cs b/Jellyfin.Api/Controllers/QuickConnectController.cs
index 2a15ff767..bdb2a4d20 100644
--- a/Jellyfin.Api/Controllers/QuickConnectController.cs
+++ b/Jellyfin.Api/Controllers/QuickConnectController.cs
@@ -52,6 +52,7 @@ public class QuickConnectController : BaseJellyfinApiController
/// <returns>A <see cref="QuickConnectResult"/> with a secret and code for future use or an error message.</returns>
[HttpPost("Initiate")]
[ProducesResponseType(StatusCodes.Status200OK)]
+ [ProducesResponseType(StatusCodes.Status401Unauthorized)]
public async Task<ActionResult<QuickConnectResult>> InitiateQuickConnect()
{
try