Skip to content

Commit

Permalink
renaming endpoints
Browse files Browse the repository at this point in the history
Signed-off-by: jamal-khey <myjamal89@gmail.com>
  • Loading branch information
jamal-khey committed Aug 1, 2024
1 parent 397d9c4 commit 4fb0ead
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public ResponseEntity<String> getElasticsearchHost() {
return ResponseEntity.ok().contentType(MediaType.TEXT_PLAIN).body(host);
}

@GetMapping(value = "/elements/index-name")
@GetMapping(value = "/cases/index-name")
@Operation(summary = "get the indexed directory elements index name")
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "Indexed directory elements index name")})
public ResponseEntity<String> getIndexedDirectoryElementsIndexName() {
Expand All @@ -63,7 +63,7 @@ public ResponseEntity<Void> reindexAllCases() {
return ResponseEntity.ok().build();
}

@DeleteMapping(value = "/elements/indexation")
@DeleteMapping(value = "/cases/indexation")
@Operation(summary = "delete indexed elements")
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "all indexed elements have been deleted")})
public ResponseEntity<String> deleteIndexedDirectoryElements() {
Expand Down

0 comments on commit 4fb0ead

Please sign in to comment.