All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tkit.quarkus.parameters.client.TestRestController Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
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();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy