Skip to content

Commit

Permalink
fix swagger-incompatible method name #241
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart Koopmann committed Sep 24, 2013
1 parent f2a5eb7 commit 087a543
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class ClusterResource extends RestResource {
@Path("/name")
@ApiOperation(value = "Get the cluster name")
@Produces(MediaType.APPLICATION_JSON)
public String name() {
public String clusterName() {
Map<String, Object> result = Maps.newHashMap();
result.put("name", core.getIndexer().cluster().getName());

Expand All @@ -57,7 +57,7 @@ public String name() {
@Path("/health")
@ApiOperation(value = "Get cluster and shard health overview")
@Produces(MediaType.APPLICATION_JSON)
public String health() {
public String clusterHealth() {
Map<String, Integer> shards = Maps.newHashMap();
shards.put("active", core.getIndexer().cluster().getActiveShards());
shards.put("initializing", core.getIndexer().cluster().getInitializingShards());
Expand Down

0 comments on commit 087a543

Please sign in to comment.