Skip to content

Commit

Permalink
Henter nøkkelinformasjon #deploy-tenor-search-service
Browse files Browse the repository at this point in the history
  • Loading branch information
krharum committed Jan 9, 2024
1 parent 28afc35 commit 0400033
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.util.MultiValueMap;
import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Mono;

Expand All @@ -24,6 +23,7 @@ public Mono<JsonNode> call() {
return webClient.get()
.uri(uriBuilder -> uriBuilder.path(TENOR_QUERY_URL)
.queryParam("kql",query)
.queryParam("nokkelinformasjon",true)
.build())
.header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)
.header(HttpHeaders.AUTHORIZATION, "Bearer " + token)
Expand Down

0 comments on commit 0400033

Please sign in to comment.