From aba64cb1f95b385ad934da07f33cc1010912ddbe Mon Sep 17 00:00:00 2001 From: kristenhaerum Date: Mon, 16 Sep 2024 13:51:49 +0200 Subject: [PATCH] Revert "Update API endpoint versions for order commands" This reverts commit 956abcf19c79e5f4c89df751dde3e368b056b6f0. --- .../consumer/command/SaveOrganisasjonBestillingCommand.java | 2 +- .../consumer/command/UpdateOrganisasjonBestillingCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/SaveOrganisasjonBestillingCommand.java b/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/SaveOrganisasjonBestillingCommand.java index 1da35f1f297..1e03dd37d3d 100644 --- a/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/SaveOrganisasjonBestillingCommand.java +++ b/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/SaveOrganisasjonBestillingCommand.java @@ -21,7 +21,7 @@ public class SaveOrganisasjonBestillingCommand implements Callable { public Long call() { return webClient .put() - .uri(builder -> builder.path("/api/v2/order/{uuid}").build(uuid)) + .uri(builder -> builder.path("/api/v1/order/{uuid}").build(uuid)) .header(HttpHeaders.AUTHORIZATION, "Bearer " + token) .retrieve() .bodyToMono(Long.class) diff --git a/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/UpdateOrganisasjonBestillingCommand.java b/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/UpdateOrganisasjonBestillingCommand.java index 3f16945bb80..07321e794c4 100644 --- a/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/UpdateOrganisasjonBestillingCommand.java +++ b/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/UpdateOrganisasjonBestillingCommand.java @@ -23,7 +23,7 @@ public class UpdateOrganisasjonBestillingCommand implements Runnable { public void run() { webClient .put() - .uri(builder -> builder.path("/api/v2/order/{uuid}/items/{id}").build(uuid, id)) + .uri(builder -> builder.path("/api/v1/order/{uuid}/items/{id}").build(uuid, id)) .body(BodyInserters.fromPublisher(Mono.just(orderDTO), OrderDTO.class)) .header(HttpHeaders.AUTHORIZATION, "Bearer " + token) .retrieve()