Skip to content

Commit

Permalink
Merge pull request #86 from navikt/debug_pdl
Browse files Browse the repository at this point in the history
Debug pdl
  • Loading branch information
flexable777 authored Dec 21, 2020
2 parents cf34c32 + d99c8bc commit eecc5f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ data class PersonGraphqlQuery(
)

data class Variables(
val idents: List<String>
val identer: List<String>
)

fun hentPersonQuery(fnrList: List<String>): PersonGraphqlQuery {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@ class OppgaveClientConfiguration(private val webClientBuilder: WebClient.Builder

@Bean
fun oppgaveWebClient(): WebClient {

val httpClient: HttpClient = HttpClient
.create()
.wiretap(true)
return webClientBuilder
.defaultHeader("x-nav-apiKey", apiKey)
.baseUrl(oppgaveServiceURL)
.clientConnector(ReactorClientHttpConnector(httpClient))
.clientConnector(ReactorClientHttpConnector(HttpClient.newConnection()))
.build()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ class PdlClientConfiguration(private val webClientBuilder: WebClient.Builder) {

@Bean
fun pdlWebClient(): WebClient {
val httpClient: HttpClient = HttpClient
.create()
.wiretap(true)
return webClientBuilder
.baseUrl(pdlUrl)
.clientConnector(ReactorClientHttpConnector(HttpClient.newConnection()))
.clientConnector(ReactorClientHttpConnector(httpClient))
.defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)
.defaultHeader(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON_VALUE)
.defaultHeader("Nav-Consumer-Id", username)
Expand Down

0 comments on commit eecc5f2

Please sign in to comment.