Java 我能';我不能让谷歌云端点正常工作,我调用的是正确的公共链接吗?
api被标记为:Java 我能';我不能让谷歌云端点正常工作,我调用的是正确的公共链接吗?,java,google-app-engine,google-cloud-endpoints,Java,Google App Engine,Google Cloud Endpoints,api被标记为: @Api(version = "v1", description = "API for interfacing with accounts", defaultVersion = AnnotationBoolean.TRUE) 我想调用的方法之一是: @ApiMethod(name = "account.register", path = "account", httpMethod = HttpMethod.POST) publi
@Api(version = "v1",
description = "API for interfacing with accounts",
defaultVersion = AnnotationBoolean.TRUE)
我想调用的方法之一是:
@ApiMethod(name = "account.register",
path = "account",
httpMethod = HttpMethod.POST)
public void register(HttpServletRequest request, HttpServletResponse response)
{ ...
但我似乎无法找到访问它的url:(
我试着把它发到myapp.appspot.com//u ah/api/myapi/v1/account,但有几件事是404
/\u ah/spi/MyEndpoint.myMethod
(注意:路径中的spi
与api
)您试图构建的实际路径是充当应用程序前端的谷歌api服务基础设施