pl.allegro.tech.hermes.management.api.ConsoleEndpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-management Show documentation
Show all versions of hermes-management Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.management.api;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.HttpMethod;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import org.springframework.stereotype.Component;
import pl.allegro.tech.hermes.management.domain.console.ConsoleService;
@Component
@Path("/")
@Api(value = "/", description = "Hermes console")
public class ConsoleEndpoint {
private ConsoleService service;
public ConsoleEndpoint(ConsoleService service) {
this.service = service;
}
@GET
@Path("/console")
@Produces("application/javascript")
@ApiOperation(value = "Hermes console configuration", httpMethod = HttpMethod.GET)
@Deprecated
public String getConfiguration() {
return service.getConfiguration();
}
@GET
@Path("/console")
@Produces("application/json")
@ApiOperation(value = "Hermes console configuration", httpMethod = HttpMethod.GET)
public String getConfigurationJson() {
return service.getConfigurationJson();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy