Google app engine 向google云端点变量添加说明

Google app engine 向google云端点变量添加说明,google-app-engine,google-api,google-cloud-endpoints,Google App Engine,Google Api,Google Cloud Endpoints,如何将描述字符串添加到google cloud端点变量中,使其在google的API explorer中可见? 我能够使用注释“”向方法添加说明。例如: @endpoints.method(LocationRequestMessage, LocationResponseMessage, path='location', http_method='POST', name='location.create') def location_create(self, r

如何将描述字符串添加到google cloud端点变量中,使其在google的API explorer中可见? 我能够使用注释“”向方法添加说明。例如:

@endpoints.method(LocationRequestMessage, LocationResponseMessage, path='location', http_method='POST',
                  name='location.create')
def location_create(self, request):
    """
    Creates a location
    """
下面是我想要实现的一个例子:

输入字段:

日历ID-->日历标识符

请求机构:

范围-->规则的范围


我必须在何处添加粗体描述文本才能将其显示?

注释在发现文件(应用程序名rest.discovery)中定义

从:


您可以看到“描述”字段。目前,
endpoints.sh get discovery
似乎没有获取代码注释并填充这些描述。但是您可以自己修改.discovery文件并部署到appengine

whould“endpoints.sh get discovery”从何处获取代码注释?我确实尝试将其添加到消息定义中(id=messages.IntegerField(1,description='Test')),但没有成功:TypeError:\uuuu init\uuu()获得了一个意外的关键字参数“description”。还有其他想法吗?对于Javascript和其他动态语言,发现文档是由Google Cloud端点在运行时动态生成的,您不能用覆盖的文件替换其URL。
"methods": {
    (key): {
      "id": string,
      "path": string,
      "httpMethod": string,
      "description": string,
      "parameters": {
        (key): {
          "id": string,
          "type": string,
          "$ref": string,
          "description": string,
          "default": string,
          "required": boolean,
          "format": string,
          "pattern": string,