Back to project page Todo.
The source code is released under:
GNU General Public License
If you think the Android project Todo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package voodsingular.todo; /* ww w. j av a 2 s .c o m*/ import com.google.api.server.spi.config.Api; import com.google.api.server.spi.config.ApiMethod; import com.google.api.server.spi.config.ApiNamespace; import java.util.logging.Logger; import javax.inject.Named; /** An endpoint class we are exposing */ @Api(name = "myEndpointEndpoint", version = "v1", namespace = @ApiNamespace(ownerDomain = "todo.voodsingular", ownerName = "todo.voodsingular", packagePath="")) public class MyEndpointEndpoint { // Make sure to add this endpoint to your web.xml file if this is a web application. private static final Logger LOG = Logger.getLogger(MyEndpointEndpoint.class.getName()); /** * This method gets the <code>MyEndpoint</code> object associated with the specified <code>id</code>. * @param id The id of the object to be returned. * @return The <code>MyEndpoint</code> associated with <code>id</code>. */ @ApiMethod(name = "getMyEndpoint") public MyEndpoint getMyEndpoint(@Named("id") Long id) { // Implement this function LOG.info("Calling getMyEndpoint method"); return null; } /** * This inserts a new <code>MyEndpoint</code> object. * @param myEndpoint The object to be added. * @return The object to be added. */ @ApiMethod(name = "insertMyEndpoint") public MyEndpoint insertMyEndpoint(MyEndpoint myEndpoint) { // Implement this function LOG.info("Calling insertMyEndpoint method"); return myEndpoint; } }