Google Endpoint in front of GraphQL API



我似乎找不到任何在 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"

最新更新