From a78912260a089c940c826e030de5313b9f402757 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Fri, 11 Apr 2025 19:43:09 +0200 Subject: [PATCH] Remove GetReferenceTypes method from HistoryController This commit removes the entire GetReferenceTypes method, along with its XML documentation comments, from the HistoryController class. The method was responsible for retrieving reference types as key-value pairs and returning them in an HTTP response. Its removal indicates a change in functionality, suggesting that reference types are no longer needed or will be managed differently in the application. --- .../Controllers/HistoryController.cs | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/EnvelopeGenerator.GeneratorAPI/Controllers/HistoryController.cs b/EnvelopeGenerator.GeneratorAPI/Controllers/HistoryController.cs index 844b7f7e..a05dcf2b 100644 --- a/EnvelopeGenerator.GeneratorAPI/Controllers/HistoryController.cs +++ b/EnvelopeGenerator.GeneratorAPI/Controllers/HistoryController.cs @@ -30,32 +30,6 @@ public class HistoryController : ControllerBase _service = service; } - /// - /// Ruft die verfügbaren Referenztypen ab und gibt sie als Schlüssel-Wert-Paare zurück. - /// - /// Ein Ok-Ergebnis mit einem Wörterbuch, das die Referenztypen als Schlüssel-Wert-Paare enthält. - /// Die Anfrage war erfolgreich, und die Referenztypen werden zurückgegeben. - /// Die Anfrage war ungültig oder unvollständig. - /// Der Benutzer ist nicht authentifiziert. - /// Der Benutzer hat keine Berechtigung, auf die Ressource zuzugreifen. - /// Ein unerwarteter Fehler ist aufgetreten. - [HttpGet("reference-type")] - [Authorize] - public IActionResult GetReferenceTypes() - { - // Enum zu Schlüssel-Wert-Paar - var referenceTypes = Enum.GetValues(typeof(ReferenceType)) - .Cast() - .ToDictionary(rt => - { - var key = rt.ToString(); - var keyAsCamelCase = char.ToLower(key[0]) + key[1..]; - return keyAsCamelCase; - }, rt => (int)rt); - - return Ok(referenceTypes); - } - /// /// Ruft die gesamte Umschlaghistorie basierend auf den angegebenen Abfrageparametern ab. ///