org.wildfly.swarm.jaxrs.MyResource Maven / Gradle / Ivy
package org.wildfly.swarm.jaxrs;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import org.joda.time.DateTime;
/**
* @author Ken Finnigan
*/
@Path("/")
public class MyResource {
@GET
@Produces("text/plain")
public String get() {
return "Howdy at " + new DateTime();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy