Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Legger til behandlingsnummer i PDL request
Browse files Browse the repository at this point in the history
  • Loading branch information
maccyber committed May 13, 2024
1 parent b4f0435 commit f2f8dd2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ open class PdlOppslagClient(
): String {
val requestBody = RestUtils.toJsonRequestBody(graphqlRequest)
val authHeaders = if (erSystemKontekst) lagAuthHeadersForSystem() else lagAuthHeaders()
val baseHeaders = mapOf(BEHANDLINGSNUMMER_HEADER to BEHANDLINGSNUMMER_HEADER_VERDI)
val request = Request.Builder()
.url(UrlUtils.joinPaths(baseUrl, "/graphql"))
.headers(Headers.of(authHeaders + ekstraHeaders))
.headers(Headers.of(baseHeaders + authHeaders + ekstraHeaders))
.method("POST", requestBody)
.build()
try {
Expand Down Expand Up @@ -173,6 +174,8 @@ open class PdlOppslagClient(
private const val NAV_PERSONIDENT_HEADER = "Nav-Personident"
private const val TEMA_HEADER = "Tema"
private const val OPPFOLGING_TEMA_HEADERVERDI = "OPP"
private const val BEHANDLINGSNUMMER_HEADER = "behandlingsnummer"
private const val BEHANDLINGSNUMMER_HEADER_VERDI = "B452"
}

override fun checkHealth(): HealthCheckResult {
Expand Down

0 comments on commit f2f8dd2

Please sign in to comment.