org.tkit.quarkus.parameters.client.TestRestController Maven / Gradle / Ivy
package org.tkit.quarkus.parameters.client;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;
@Path("test")
public class TestRestController {
@Inject
ParametersService parametersService;
@GET
@Path("/config/{param}")
public Response config(@PathParam("param") String param) {
String data = parametersService.getValue(param, String.class, "NO_VALUE");
return Response.ok(data).build();
}
}