
net.anotheria.moskito.webui.gauges.resource.GaugeResource Maven / Gradle / Ivy
package net.anotheria.moskito.webui.gauges.resource;
import net.anotheria.anoplass.api.APIException;
import net.anotheria.moskito.webui.shared.resource.AbstractResource;
import net.anotheria.moskito.webui.shared.resource.ReplyObject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.WebApplicationException;
/**
* TODO comment this class
*
* @author lrosenberg
* @since 25.03.15 11:47
*/
@Path("gauges")
public class GaugeResource extends AbstractResource {
@GET
public ReplyObject getGauges(){
try{
ReplyObject ret = ReplyObject.success();
ret.addResult("gauges", getGaugeAPI().getGauges());
return ret;
}catch(APIException e){
throw new WebApplicationException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy