graphql - GraphQL API 前的 Google Endpoint
问题描述
我似乎找不到任何在 GraphQL API 前设置 Google Endpoint API Gateway 的参考资料。
任何帮助或提供参考资料都会很棒。
谢谢,布赖恩
解决方案
我测试了这个设置并且它有效。假设你有一个api.test.com/graphql
端点,你需要在你的 yaml 配置文件中定义一个路径:
paths:
/graphql:
post:
description: "graphql http-post endpoint"
operationId: "graphql-post"
produces:
- "application/json"
responses:
200:
description: "Echo"
schema:
$ref: "#/definitions/echo_message"
推荐阅读
- python - 只有一个表达式的两个 REGEX 操作
- windows - 用于循环启动应用程序的 Windows 批处理脚本
- apache-spark - 如何检查大型镶木地板文件中的列是否已被修改?
- r - 如何制作具有一个“x”值和多个“y”值的ggplot
- swift - 如果单击按钮并满足其他条件,如何切换到第二个场景?
- azure - 单个应用洞察服务可以处理的应用服务数量是否有任何限制?
- css - 水平滚动 div 中动画的卡片间距问题
- go - 将struct转换为YAML文件golang,如何避免yaml输出中的空引号?
- c - 管道(),叉子();执行();我为 `cat | 寻找与 bash 相同的行为。ls`
- python - 使用 Python 和 Snowflake 进行列匹配