Google app engine 在google云端点中提供多个API

Google app engine 在google云端点中提供多个API,google-app-engine,google-cloud-platform,google-cloud-endpoints,Google App Engine,Google Cloud Platform,Google Cloud Endpoints,我正在尝试使用一组不同的方法为2个不同的api提供服务,如下所述: 通过GCE,在my main.py中的结构如下 @endpoints.api(name = 'first', version = 'v1') class firstApi(remote.Service): @endpoints.method( # Lots of stuff here path = 'first' # Lots more here @endpoints.api(name = 'sec

我正在尝试使用一组不同的方法为2个不同的api提供服务,如下所述:

通过GCE,在my main.py中的结构如下

@endpoints.api(name = 'first', version = 'v1')
class firstApi(remote.Service):
  @endpoints.method(
    # Lots of stuff here
    path = 'first'
    # Lots more here

@endpoints.api(name = 'second', version = 'v1')
class secondApi(remote.Service):
    @endpoints.method(
      # Lots of stuff here
      path = 'second'
      # Lots more here

api = endpoints.api_server([firstApi, secondApi])
但是当我生成firstv1openapi.json和secondv1openapi.json并部署它们时,会发生一些奇怪的事情。当我把它加载到谷歌的API浏览器中时,我看到bothAPI下的both方法

更糟糕的是,当我单击第二个API并通过API资源管理器尝试任何方法时,路径总是引用第一个API

第一次发布/v1/第二次发布

正如预期的那样,404会失败

我已经查看了firstv1openapi.json和secondv1openapi.json,以查看api是否相互交叉引用,它们看起来都很好


我不再尝试不同的选项,任何帮助都将不胜感激。

我看到您正在使用Python端点框架。该框架目前仅在AppEngine的标准环境中工作,不在GCE中工作