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

io.split.qos.server.resources.HealthResource Maven / Gradle / Ivy

There is a newer version: 22.4.3
Show newest version
package io.split.qos.server.resources;

import com.google.inject.Singleton;

import javax.inject.Inject;
import javax.ws.rs.Consumes;
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("/health")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
@Singleton
public class HealthResource {


    @Inject
    public HealthResource() { }

    @GET
    public Response ok() {
        return Response.ok("ok").build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy