From 0af83f2fd05af1c08100c6ff77aec949daffdde8 Mon Sep 17 00:00:00 2001 From: Glax Date: Sat, 8 Mar 2025 18:36:57 +0100 Subject: [PATCH] Update Swagger Documenatation for 501 NotImplemented --- API/Controllers/SettingsController.cs | 5 +++-- API/Schema/Jobs/UpdateMetadataJob.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/API/Controllers/SettingsController.cs b/API/Controllers/SettingsController.cs index afb512b..15c6dbe 100644 --- a/API/Controllers/SettingsController.cs +++ b/API/Controllers/SettingsController.cs @@ -72,11 +72,12 @@ public class SettingsController(PgsqlContext context) : Controller /// /// Update all Request-Limits to new values /// - /// NOT IMPLEMENTED + ///

NOT IMPLEMENTED

[HttpPatch("RequestLimits")] + [ProducesResponseType(Status501NotImplemented)] public IActionResult SetRequestLimits() { - throw new NotImplementedException(); + return StatusCode(501); } /// diff --git a/API/Schema/Jobs/UpdateMetadataJob.cs b/API/Schema/Jobs/UpdateMetadataJob.cs index fe27a6f..0a0e97a 100644 --- a/API/Schema/Jobs/UpdateMetadataJob.cs +++ b/API/Schema/Jobs/UpdateMetadataJob.cs @@ -21,6 +21,6 @@ public class UpdateMetadataJob(ulong recurrenceMs, string mangaId, string? paren /// protected override IEnumerable RunInternal(PgsqlContext context) { - throw new NotImplementedException(); + return [];//TODO } } \ No newline at end of file