
templates.graphql.GraphqlWebResource.template Maven / Gradle / Ivy
The newest version!
package @[email protected];
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
@Path("@base_path@/web")
@Produces(MediaType.TEXT_HTML)
public class GraphqlWebResource {
@GET
public Response getGraphiql() {
ClassLoader classloader = Thread.currentThread().getContextClassLoader();
return Response.ok(classloader.getResourceAsStream("index.html")).build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy