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

add delete api

parent e2ee455a
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 {
private IndicesServiceImpl indicesService;
private static final String PRE_AUTH = "@authorizationFilter.hasPermission('"+ SearchServiceRole.ADMIN + "')" ;
@ApiIgnore
@PostMapping(path = "/index-cleanup", consumes = "application/json")
......@@ -108,7 +107,6 @@ public class CleanupIndiciesApi {
}
@DeleteMapping(value = "/delete-index-for-kind", produces = MediaType.APPLICATION_JSON_VALUE)
@PreAuthorize(PRE_AUTH)
public ResponseEntity deleteIndex(@RequestParam("kind") @NotBlank @ValidKind String kind) {
try {
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