Skip to content

Commit

Permalink
Merge pull request #28 from Biacode/#27
Browse files Browse the repository at this point in the history
Apply #27 changes
  • Loading branch information
Biacode authored Jul 21, 2017
2 parents 1136e90 + c1ec977 commit 3f3cb0b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ public ResponseEntity<EsCommonsResultResponse<PrepareIndexResponse>> prepareInde
}

@RequestMapping(path = "change-alias", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
public ResponseEntity<EsCommonsResultResponse<ChangeIndexAliasResponse>> changeAlias(final ChangeIndexAliasRequest request) {
public ResponseEntity<EsCommonsResultResponse<ChangeIndexAliasResponse>> changeAlias(@RequestBody final ChangeIndexAliasRequest request) {
assertChangeIndexAliasRequest(request);
indexingComponent.createAliasAndDeleteOldIndices(request.getAlias(), request.getIndexName());
return ResponseEntity.ok(new EsCommonsResultResponse<>());
}

@RequestMapping(path = "remove-index-by-name", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
public ResponseEntity<EsCommonsResultResponse<RemoveIndexByNameResponse>> removeIndexByName(final RemoveIndexByNameRequest request) {
public ResponseEntity<EsCommonsResultResponse<RemoveIndexByNameResponse>> removeIndexByName(@RequestBody final RemoveIndexByNameRequest request) {
assertRemoveIndexByNameRequest(request);
indexingComponent.removeIndexByName(request.getIndexName());
return ResponseEntity.ok(new EsCommonsResultResponse<>());
Expand Down

0 comments on commit 3f3cb0b

Please sign in to comment.