From 301111a5701bd42141293d0004c2243a73842482 Mon Sep 17 00:00:00 2001 From: Viktor Solberg Date: Wed, 27 Nov 2024 15:06:11 +0100 Subject: [PATCH 1/2] legger inn spring-boot,jetty-server og springdoc --- pom.xml | 43 ++++++++++++++++++- .../nav/familie/pdf/config/PingController.kt | 2 +- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 67c7db2..afb5dbb 100644 --- a/pom.xml +++ b/pom.xml @@ -20,6 +20,7 @@ -SNAPSHOT 2.0.21 + 2.6.0 5.8.1 1.13.13 3.20240913110742_adb42f8 @@ -66,12 +67,52 @@ org.jetbrains.kotlin kotlin-reflect - + + org.springframework.boot + spring-boot-starter-jetty + + + org.eclipse.jetty + jetty-server + + + org.springframework.boot + spring-boot-starter-validation + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + org.springframework.boot + spring-boot-configuration-processor + true + com.fasterxml.jackson.module jackson-module-kotlin ${jackson.version} + + org.springdoc + springdoc-openapi-starter-webmvc-ui + ${springdoc.version} + + + org.springdoc + springdoc-openapi-starter-common + ${springdoc.version} + + + org.springframework.boot + spring-boot-starter-actuator + com.fasterxml.jackson.datatype jackson-datatype-jsr310 diff --git a/src/main/kotlin/no/nav/familie/pdf/config/PingController.kt b/src/main/kotlin/no/nav/familie/pdf/config/PingController.kt index efe5845..524c3e1 100644 --- a/src/main/kotlin/no/nav/familie/pdf/config/PingController.kt +++ b/src/main/kotlin/no/nav/familie/pdf/config/PingController.kt @@ -12,4 +12,4 @@ import org.springframework.web.bind.annotation.RestController class PingController { @GetMapping fun ping(): ResponseEntity = ResponseEntity.ok("pong") -} \ No newline at end of file +} From 0e6c1f8d2bc9264c18e8c0f1cb59cbdbb091bd35 Mon Sep 17 00:00:00 2001 From: Sandra Lekve Date: Wed, 27 Nov 2024 16:49:30 +0100 Subject: [PATCH 2/2] legg til unprotected --- src/main/kotlin/no/nav/familie/pdf/pdf/PdfController.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/no/nav/familie/pdf/pdf/PdfController.kt b/src/main/kotlin/no/nav/familie/pdf/pdf/PdfController.kt index aa1a13a..3626b70 100644 --- a/src/main/kotlin/no/nav/familie/pdf/pdf/PdfController.kt +++ b/src/main/kotlin/no/nav/familie/pdf/pdf/PdfController.kt @@ -1,11 +1,13 @@ package no.nav.familie.pdf.pdf +import no.nav.security.token.support.core.api.Unprotected import org.springframework.web.bind.annotation.PostMapping import org.springframework.web.bind.annotation.RequestBody import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RestController @RestController +@Unprotected @RequestMapping("api/pdf") class PdfController { private val pdfService = PdfService()