File tree Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -5,24 +5,24 @@ import com.expediagroup.graphql.plugin.gradle.tasks.GraphQLGenerateClientTask
5
5
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
6
6
import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer
7
7
8
- val ktor_version = " 2.3.12 "
8
+ val ktor_version = " 3.0.1 "
9
9
val kotlin_version = " 2.0.21"
10
10
val kotlinx_datetime_version = " 0.6.1"
11
- val kompendium_version = " 3.14.4 "
11
+ val kompendium_version = " 4.0.1 "
12
12
val logback_version = " 1.5.12"
13
13
val logstash_version = " 8.0"
14
14
val prometeus_version = " 1.6.3"
15
15
val nav_common_version = " 3.2024.10.25_13.44-9db48a0dbe67"
16
16
val tjenestespec_version = " 1.2021.02.22-10.45-4201aaea72fb"
17
- val modia_common_utils_version = " 1.2023.07.20-13.43-64707e48b53b "
17
+ val modia_common_utils_version = " 1.2024.10.30-08.17-f565fe211cd4 "
18
18
val junit_version = " 5.11.3"
19
19
val graphql_kotlin_version = " 8.2.1"
20
20
21
21
plugins {
22
22
application
23
23
kotlin(" jvm" ) version " 2.0.21"
24
24
id(" org.jetbrains.kotlin.plugin.serialization" ) version " 2.0.21"
25
- id(" com.github.johnrengelman. shadow" ) version " 8.1.1 "
25
+ id(" com.gradleup. shadow" ) version " 8.3.4 "
26
26
id(" com.expediagroup.graphql" ) version " 8.2.1"
27
27
}
28
28
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package no.nav.api.debug
2
2
3
3
import io.bkbn.kompendium.core.metadata.PostInfo
4
4
import io.bkbn.kompendium.core.plugin.NotarizedRoute
5
+ import io.bkbn.kompendium.oas.payload.MediaType
5
6
import io.ktor.http.*
6
7
import io.ktor.server.application.*
7
8
import io.ktor.server.request.*
@@ -62,11 +63,13 @@ private object Api {
62
63
examples(
63
64
Pair (
64
65
" example" ,
65
- TokenExchangeRequest (
66
- cluster = " dev-fss" ,
67
- namespace = " teamname" ,
68
- application = " app-api" ,
69
- ),
66
+ MediaType .Example (
67
+ TokenExchangeRequest (
68
+ cluster = " dev-fss" ,
69
+ namespace = " teamname" ,
70
+ application = " app-api" ,
71
+ ),
72
+ )
70
73
),
71
74
)
72
75
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import io.ktor.http.*
4
4
import io.ktor.server.application.*
5
5
import io.ktor.server.plugins.*
6
6
import io.ktor.server.plugins.callid.*
7
- import io.ktor.server.plugins.callloging .*
7
+ import io.ktor.server.plugins.calllogging .*
8
8
import io.ktor.server.request.*
9
9
import io.ktor.server.response.*
10
10
import io.ktor.server.routing.*
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ private val specSerializer =
32
32
33
33
fun Application.configureOpenApi () {
34
34
install(NotarizedApplication ()) {
35
- spec =
35
+ spec = {
36
36
OpenApiSpec (
37
37
info =
38
38
Info (
@@ -47,9 +47,10 @@ fun Application.configureOpenApi() {
47
47
),
48
48
),
49
49
)
50
+ }
50
51
51
- openApiJson = {
52
- route(" /openapi.json" ) {
52
+ specRoute = { spec, routing ->
53
+ routing. route(" /openapi.json" ) {
53
54
get {
54
55
call.respondText(
55
56
contentType = ContentType .Application .Json ,
You can’t perform that action at this time.
0 commit comments