Skip to content

Commit

Permalink
Aktiverte record-key api
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsmsa committed Oct 14, 2024
1 parent 30dfbe4 commit 8df31d0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions apps/kafka-key-generator/nais/nais-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
spec:
image: {{ image }}
port: 8080
ingress:
- https://record-key-arbeidssoekerregisteret.intern.dev.nav.no/api/v1/record-key
replicas:
min: 2
max: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fun Routing.configureRecordKeyApi(
) {
val logger = LoggerFactory.getLogger("record-key-api")
authenticate(autentiseringKonfigurasjon.kafkaKeyApiAuthProvider) {
post("/api/oppslag/v1/metadata") {
post("/api/v1/record-key") {
handleRequest(applikasjon, logger)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import io.micrometer.core.instrument.binder.system.ProcessorMetrics
import io.micrometer.core.instrument.distribution.DistributionStatisticConfig
import io.micrometer.prometheusmetrics.PrometheusMeterRegistry
import no.nav.paw.kafkakeygenerator.Applikasjon
import no.nav.paw.kafkakeygenerator.api.recordkey.configureRecordKeyApi
import no.nav.paw.kafkakeygenerator.api.v2.konfigurerApiV2
import no.nav.paw.kafkakeygenerator.config.Autentiseringskonfigurasjon
import no.nav.paw.kafkakeygenerator.masker
Expand All @@ -44,7 +45,9 @@ fun Application.konfigurerServer(
routing {
konfigurereHelse(prometheusMeterRegistry)
konfigurerApiV2(autentiseringKonfigurasjon, applikasjon)
configureRecordKeyApi(autentiseringKonfigurasjon, applikasjon)
swaggerUI(path = "docs", swaggerFile = "openapi/documentation.yaml")
swaggerUI(path = "docs/record-key", swaggerFile = "openapi/record-key-api-spec.yaml")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ info:
description: "Read only API"
version: "1.0.0"
servers:
- url: "https://paw_kafka_key_generator"
- url: "https://paw_kafka_key_generator"
- url: "https://record-key-arbeidssoekerregisteret.intern.dev.nav.no"
description: "Dev"
paths:
/api/oppslag/v1/recordKey:
/api/v1/record-key:
post:
description: ""
parameters:
Expand Down

0 comments on commit 8df31d0

Please sign in to comment.