Hi all, I've developed a web application using maven and appengine. I have some problems with cloud endpoints, everything works fine in my local machine but when I deploy to appengine I've a strange response calling endpoints. I'm new to appengine and I don't if I am doing something wrong. I've attached some files. This is what is going wrong:
Request GET https://soccer5manager.appspot.com/_ah/api/manager/v1/matches X-JavaScript-User-Agent: Google APIs Explorer Response 404 Not Found - Hide headers - cache-control: private, max-age=0 content-encoding: gzip content-length: 125 content-type: application/json; charset=UTF-8 date: Mon, 12 May 2014 20:14:57 GMT expires: Mon, 12 May 2014 20:14:57 GMT server: GSE { "error": { "errors": [ { "domain": "global", "reason": "unsupportedProtocol", "message": "" } ], "code": 404, "message": "" } } -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
package it.giant.endpoints;
import it.giant.soccerregistration.bo.MatchesBO;
import it.giant.soccerregistration.entities.Match;
import java.util.List;
import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiMethod;
import com.google.api.server.spi.config.Named;
@Api(name = "manager", version = "v1")
public class Matches {
private static MatchesBO bo = new MatchesBO();
public Match get(@Named("id") Long id) {
return bo.get(id);
}
@ApiMethod(name = "matches.list", path = "matches", httpMethod = ApiMethod.HttpMethod.GET)
public List<Match> list() {
return bo.list();
}
@ApiMethod(name = "matches.add", path = "matches", httpMethod = ApiMethod.HttpMethod.POST)
public Match add(Match Match) {
Match result = bo.save(Match);
return result;
}
@ApiMethod(name = "matches.update", path = "matches", httpMethod = ApiMethod.HttpMethod.PUT)
public Match update(Match Match) {
Match result = bo.save(Match);
return result;
}
@ApiMethod(name = "matches.delete", path = "matches/{id}", httpMethod = ApiMethod.HttpMethod.DELETE)
public void delete(@Named("id") Long id) {
bo.delete(id);
}
}
appengine-web.xml
Description: XML document
web.xml
Description: XML document
package it.giant.endpoints;
import it.giant.soccerregistration.bo.PlayersBO;
import it.giant.soccerregistration.entities.Player;
import java.net.URLDecoder;
import java.util.List;
import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiMethod;
import com.google.api.server.spi.config.Named;
@Api(name = "manager", version = "v1")
public class Players {
private static PlayersBO bo = new PlayersBO();
public Player get(@Named("id") String id) {
String decodedId = URLDecoder.decode(id);
return bo.get(decodedId);
}
@ApiMethod(name = "players.list", path = "player", httpMethod = ApiMethod.HttpMethod.GET)
public List<Player> list() {
return bo.list();
}
@ApiMethod(name = "players.add", path = "player", httpMethod = ApiMethod.HttpMethod.POST)
public Player add(Player player) {
Player result = bo.save(player);
return result;
}
@ApiMethod(name = "players.update", path = "player", httpMethod = ApiMethod.HttpMethod.PUT)
public Player update(Player player) {
Player result = bo.save(player);
return result;
}
@ApiMethod(name = "players.delete", path = "player/{id}", httpMethod = ApiMethod.HttpMethod.DELETE)
public void delete(@Named("id") String id) {
bo.delete(id);
}
}
pom.xml
Description: XML document
