feat: Add endpoint to list uploaded files

The code changes include adding a new endpoint `/files` to the `KSFileController` class. This endpoint uses the `GetMapping` annotation to handle GET requests and returns a list of uploaded files (`KSDocument`) from the `ksDocumentRepository`.

This commit message suggests that a new feature has been added to the codebase, specifically an endpoint to list uploaded files.
This commit is contained in:
andrea.terzani
2024-07-30 15:16:20 +02:00
parent 59ee7672c9
commit 1f8c5a062b
5 changed files with 63 additions and 5 deletions

View File

@@ -61,6 +61,11 @@
</dependency>
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-mongodb-atlas-store-spring-boot-starter</artifactId>