Skip to content
Snippets Groups Projects
Commit 59d74187 authored by Neelesh Thakur's avatar Neelesh Thakur
Browse files

change verb

parent 7147f34b
No related branches found
No related tags found
2 merge requests!346Merge branch 'aws-integration' into 'master',!282disable default index creation
......@@ -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<>());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment