From 01a016b34fb31888197a7cfd592c40b9582605d8 Mon Sep 17 00:00:00 2001 From: luevard Date: Wed, 7 Feb 2024 20:09:27 +0100 Subject: [PATCH] :sparkles: Add Swagger in route /swagger-ui --- Sources/src/main/kotlin/allin/Application.kt | 11 ----------- Sources/src/main/resources/documentation.yaml | 10 ---------- 2 files changed, 21 deletions(-) delete mode 100644 Sources/src/main/resources/documentation.yaml diff --git a/Sources/src/main/kotlin/allin/Application.kt b/Sources/src/main/kotlin/allin/Application.kt index 6286820..5aafc00 100644 --- a/Sources/src/main/kotlin/allin/Application.kt +++ b/Sources/src/main/kotlin/allin/Application.kt @@ -61,17 +61,6 @@ private fun Application.extracted() { } install(ContentNegotiation) { json() } install(SwaggerUI){ - swagger { - forwardRoot = false - swaggerUrl = "swagger" - rootHostPath = "http://127.0.0.1:8080/" - authentication = "MySwaggerAuth" - onlineSpecValidator() - displayOperationId = true - showTagFilterInput = true - sort = SwaggerUiSort.HTTP_METHOD - syntaxHighlight = SwaggerUiSyntaxHighlight.MONOKAI - } info { title = "Allin API" version = "latest" diff --git a/Sources/src/main/resources/documentation.yaml b/Sources/src/main/resources/documentation.yaml deleted file mode 100644 index 9b05e13..0000000 --- a/Sources/src/main/resources/documentation.yaml +++ /dev/null @@ -1,10 +0,0 @@ -swagger: "2.0" -info: - title: Allin API - description: Title - version: 4.0.0 -host: www.Allin.fr -schemes: - - https -paths: "src/main/kotlin/allin" -