Skip to content

Commit

Permalink
Revert "Update API endpoint versions for order commands"
Browse files Browse the repository at this point in the history
This reverts commit 956abcf.
  • Loading branch information
krharum committed Sep 16, 2024
1 parent 2fba5fb commit aba64cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class SaveOrganisasjonBestillingCommand implements Callable<Long> {
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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit aba64cb

Please sign in to comment.