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 +} 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()