Google app engine 我的Google云端点API在API浏览器上不可见

Google app engine 我的Google云端点API在API浏览器上不可见,google-app-engine,google-cloud-endpoints,Google App Engine,Google Cloud Endpoints,我对谷歌应用程序引擎和端点非常陌生,一直在编写基本的端点函数并部署到云端。我成功地部署了HelloWorld端点,并通过API explorer对其进行了测试:http://localhost:8080/_ah/api/explorer 但是现在,当我创建了一个新的端点API并遵循相同的步骤(即在appengine-web.xml中使用新的应用程序引擎应用程序名部署,以appengine:update运行)时,API浏览器仍然显示我的HelloWorld端点,而不是我的新API“yourfirs

我对谷歌应用程序引擎和端点非常陌生,一直在编写基本的端点函数并部署到云端。我成功地部署了HelloWorld端点,并通过API explorer对其进行了测试:http://localhost:8080/_ah/api/explorer

但是现在,当我创建了一个新的端点API并遵循相同的步骤(即在appengine-web.xml中使用新的应用程序引擎应用程序名部署,以appengine:update运行)时,API浏览器仍然显示我的HelloWorld端点,而不是我的新API“yourfirstendpoint”

我已经搜索并试图找到一个没有用的答案——如果这对我来说是一个非常基本和愚蠢的问题,我很抱歉(我肯定是这样),但如果有人能为我指出正确的方向,我会非常感激

我的API

package com.example.zinglife;
导入com.google.api.server.spi.config.api;
导入com.google.api.server.spi.config.ApiMethod;
导入com.google.api.server.spi.config.ApiMethod.HttpMethod;
导入com.google.api.server.spi.response.NotFoundException;
导入com.google.appengine.api.datastore.Key;
导入com.google.appengine.api.datastore.KeyFactory;
/**
* 
*定义端点函数API。
*/
@Api(name=“yourfirstapi”,version=“v1”,
scopes={Constants.EMAIL_SCOPE},
clientId={Constants.API\u EXPLORER\u CLIENT\u ID},
description=“hello world端点的API。”)
公共类YourFirstAPI
{
@ApiMethod(name=“storeUserModel”)
私有用户storeUserModel(用户用户)引发NotFoundException
{
字符串email=user.getEmail();
Key=KeyFactory.createKey(“用户”,电子邮件);
用户userEntity=null;
尝试
{
if(userEntity==null)
{   
userEntity=新用户();
userEntity.setName(user.getName());
userEntity.setEmail(user.getEmail());
userEntity.setCountry(user.getCountry());
//
}
返回用户实体;
}//*末日
最后
{
}
} 

}
确保已将新服务添加为EndPointsServlet的“services”参数值之一

<servlet>
    <!-- This is version 2.0 of the endpoints framework. -->
    <servlet-name>EndpointsServlet</servlet-name>
    <servlet-class>com.google.api.server.spi.EndpointsServlet</servlet-class>
    <init-param>
        <param-name>services</param-name>

        <!-- Comma separated classes that provide endpoints -->
        <param-value>
            com.mycompany.myproduct.endpoint.SomeServiceV1,
            com.mycompany.myproduct.endpoint.SomeServiceV2,
            com.mycompany.myproduct.endpoint.SomeOtherServiceV1,
            com.mycompany.myproduct.endpoint.SomeOtherServiceV2,
            com.mycompany.myproduct.endpoint.SomeOtherServiceV3
        </param-value>
    </init-param>
</servlet>

端点服务器
com.google.api.server.spi.EndpointsServlet
服务
com.mycompany.myproduct.endpoint.SomeServiceV1,
com.mycompany.myproduct.endpoint.SomeServiceV2,
com.mycompany.myproduct.endpoint.SomeOtherServiceV1,
com.mycompany.myproduct.endpoint.someotherservice2,
com.mycompany.myproduct.endpoint.SomeOtherServiceV3

api explorer有时会出现故障。一般来说,您应该看到您的端点api。如果您没有,以下是一些可能性:您可能没有正确生成和部署发现文档,您上载了一个新版本,但没有切换到此版本作为默认版本,您的浏览器中有过时的数据,应该清除浏览器缓存,您忘记将新的api类添加到web.xml中的
com.google.api.server.spi.SystemServiceServlet
init参数。