【问题标题】:Configuring smartdocs配置智能文档
【发布时间】:2020-05-26 20:46:59
【问题描述】:

跟进this question,有没有办法配置 Google Cloud Endpoints gRPC 服务(使用 ESP),以便为 REST(和 gRPC)自动生成的 SmartDocs 不使用驼峰式大小写,而是保留.proto 文件的蛇形案例?

我已经想出了如何运行 ESP,以便 ESP 本身在转码中保留大小写:通过在运行时将 --transcoding_preserve_proto_field_names 传递给可执行文件。

但现在我自动生成的 REST 文档与实际的 API 不匹配!

救命!

【问题讨论】:

  • @wayne-zhang 谷歌云端点人员有什么帮助吗?
  • @ivan-li 同 ^^^

标签: google-cloud-platform google-cloud-endpoints


【解决方案1】:

这目前是 Cloud Endpoints Portal 的限制。 Portal 无权访问 --transcoding_preserve_proto_field 并假定字段名称是驼峰式的。

【讨论】:

    猜你喜欢
    • 2010-11-22
    • 1970-01-01
    • 1970-01-01
    • 2021-05-27
    • 2010-11-21
    • 1970-01-01
    • 2011-08-17
    • 2012-10-07
    • 1970-01-01
    相关资源
    最近更新 更多