From 0be45a8e586ec96c608a380592e6db4990c7f87f Mon Sep 17 00:00:00 2001 From: stigus Date: Mon, 22 Jan 2024 15:04:40 +0100 Subject: [PATCH] Endring for Skjerming frontend #deploy-test-frontend --- .../command/SkjermingsregisterPostCommand.java | 5 ++--- .../src/service/services/skjerming/SkjermingService.tsx | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/skjermingsregister/command/SkjermingsregisterPostCommand.java b/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/skjermingsregister/command/SkjermingsregisterPostCommand.java index 22440b075d5..4279c806a8f 100644 --- a/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/skjermingsregister/command/SkjermingsregisterPostCommand.java +++ b/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/skjermingsregister/command/SkjermingsregisterPostCommand.java @@ -9,7 +9,6 @@ import reactor.util.retry.Retry; import java.time.Duration; -import java.util.List; import java.util.concurrent.Callable; import static org.springframework.http.HttpHeaders.AUTHORIZATION; @@ -20,7 +19,7 @@ public class SkjermingsregisterPostCommand implements Callable call() { .path(SKJERMINGSREGISTER_URL) .build()) .header(AUTHORIZATION, "Bearer " + token) - .bodyValue(skjermingsDataRequest) + .bodyValue(skjermingDataRequest) .retrieve() .bodyToFlux(SkjermingDataResponse.class) .onErrorResume(error -> Flux.just(SkjermingDataResponse.builder() diff --git a/apps/dolly-frontend/src/main/js/src/service/services/skjerming/SkjermingService.tsx b/apps/dolly-frontend/src/main/js/src/service/services/skjerming/SkjermingService.tsx index 824c0725699..aefe3757adb 100644 --- a/apps/dolly-frontend/src/main/js/src/service/services/skjerming/SkjermingService.tsx +++ b/apps/dolly-frontend/src/main/js/src/service/services/skjerming/SkjermingService.tsx @@ -1,13 +1,13 @@ import Request from '@/service/services/Request' -const skjermingUrl = '/testnav-skjermingsregister-proxy/api/v1/skjermingdata' +const skjermingUrl = '/testnav-skjermingsregister-proxy/api/v1/skjerming/dolly' export default { deleteSkjerming(ident: string) { - return Request.delete(`${skjermingUrl}/${ident}`) + return Request.put(skjermingUrl, { personident: ident, skjermetTil: new Date() }) }, getSkjerming(ident: string) { - return Request.get(`${skjermingUrl}/${ident}`) - } + return Request.get(skjermingUrl, { personident: ident }) + }, }