From 59d741873e8d0e4ecfaca3d07a59c1e4532914b8 Mon Sep 17 00:00:00 2001
From: NThakur4 <nthakur4@slb.com>
Date: Wed, 9 Feb 2022 16:04:11 -0600
Subject: [PATCH] change verb

---
 .../org/opengroup/osdu/indexer/api/DataPartitionSetupApi.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/DataPartitionSetupApi.java b/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/DataPartitionSetupApi.java
index 45de58f70..bd94e7fa1 100644
--- a/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/DataPartitionSetupApi.java
+++ b/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/DataPartitionSetupApi.java
@@ -19,7 +19,7 @@ import org.opengroup.osdu.indexer.service.IClusterConfigurationService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.ResponseEntity;
 import org.springframework.security.access.prepost.PreAuthorize;
-import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.context.annotation.RequestScope;
@@ -40,7 +40,7 @@ public class DataPartitionSetupApi {
     private AuditLogger auditLogger;
 
     @PreAuthorize("@authorizationFilter.hasPermission('" + OPS + "')")
-    @PostMapping(path = "/cluster-settings", consumes = "application/json")
+    @PutMapping(path = "/cluster-settings", consumes = "application/json")
     public ResponseEntity<?> partitionInit() throws IOException {
         this.clusterConfigurationService.updateClusterConfiguration();
         this.auditLogger.getConfigurePartition(new ArrayList<>());
-- 
GitLab