Skip to content
Snippets Groups Projects
Commit 97ba9d60 authored by Smitha Manjunath's avatar Smitha Manjunath
Browse files

add delete api

parent df83c8bd
No related branches found
No related tags found
2 merge requests!346Merge branch 'aws-integration' into 'master',!273Delete api
...@@ -67,7 +67,6 @@ public class CleanupIndiciesApi { ...@@ -67,7 +67,6 @@ public class CleanupIndiciesApi {
private IndicesServiceImpl indicesService; private IndicesServiceImpl indicesService;
private static final String PRE_AUTH = "@authorizationFilter.hasPermission('"+ SearchServiceRole.ADMIN + "')" ;
@ApiIgnore @ApiIgnore
@PostMapping(path = "/index-cleanup", consumes = "application/json") @PostMapping(path = "/index-cleanup", consumes = "application/json")
...@@ -108,7 +107,6 @@ public class CleanupIndiciesApi { ...@@ -108,7 +107,6 @@ public class CleanupIndiciesApi {
} }
@DeleteMapping(value = "/delete-index-for-kind", produces = MediaType.APPLICATION_JSON_VALUE) @DeleteMapping(value = "/delete-index-for-kind", produces = MediaType.APPLICATION_JSON_VALUE)
@PreAuthorize(PRE_AUTH)
public ResponseEntity deleteIndex(@RequestParam("kind") @NotBlank @ValidKind String kind) { public ResponseEntity deleteIndex(@RequestParam("kind") @NotBlank @ValidKind String kind) {
try { try {
String index = elasticIndexNameResolver.getIndexNameFromKind(kind); String index = elasticIndexNameResolver.getIndexNameFromKind(kind);
......
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