Add Swagger UI support using Springdoc OpenAPI

This commit is contained in:
Pablo de la Torre Jamardo 2025-07-19 20:41:16 +02:00
parent a2b68f6b9f
commit 7c3c4e228e
2 changed files with 10 additions and 1 deletions

View File

@ -23,6 +23,13 @@
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<!-- API Documentation -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.8.9</version>
</dependency>
<!-- llama-java (IA offline) --> <!-- llama-java (IA offline) -->
<dependency> <dependency>
<groupId>de.kherud</groupId> <groupId>de.kherud</groupId>

View File

@ -9,6 +9,9 @@ spring:
database-platform: org.hibernate.community.dialect.SQLiteDialect database-platform: org.hibernate.community.dialect.SQLiteDialect
hibernate: hibernate:
ddl-auto: update ddl-auto: update
springdoc:
api-docs.path: /api-docs
swagger-ui.path: /swagger-ui.html
llama: llama:
model: model:
name: openchat-3.5-0106.Q4_K_M name: openchat-3.5-0106.Q4_K_M
@ -16,4 +19,3 @@ llama:
enabled: true enabled: true
layers: 35 layers: 35
tokens: 1024 tokens: 1024