feat: Update getDocument method in KsDocumentController

Refactor the getDocument method in KsDocumentController to return a single KSDocument object instead of a list. This improves the efficiency and readability of the code. The method now uses the findById method of ksDocumentRepository to retrieve the document with the specified id.
This commit is contained in:
andrea.terzani
2024-07-31 17:30:08 +02:00
parent 1f8c5a062b
commit 1fdd4f52ec
4 changed files with 169 additions and 3 deletions

12
pom.xml
View File

@@ -90,6 +90,14 @@
<artifactId>lombok</artifactId>
<version>1.18.34</version>
</dependency>
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>6.8.0.202311291450-r</version>
</dependency>
</dependencies>
<build>
@@ -133,6 +141,10 @@
<enabled>false</enabled>
</releases>
</repository>
<repository>
<id>jgit-repository</id>
<url>https://repo.eclipse.org/content/groups/releases/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>