【问题标题】:Is there any way to create API documentation for graphql end points in a spring boot project有什么方法可以在 Spring Boot 项目中为 graphql 端点创建 API 文档
【发布时间】:2020-12-22 15:28:17
【问题描述】:

我有一个 springboot 微服务项目,我正在使用 graphql。对于 REST api 端点,我知道我们可以使用 swagger 等进行记录。Graphiql 还提供动态文档,但有没有其他方法可以为不太了解 graphql 或 Graphiql 工作原理的客户创建 API 文档。

【问题讨论】:

  • 我也有同样的问题。 GraphQL-spqr 自动生成一个 graphql schema。我仍在寻找一种方法来访问/读取/查看这个自动生成的模式。 GraphiQL 没有显示。

标签: spring-boot graphql documentation graphiql


【解决方案1】:

aaah 这可能会有所帮助:您可以通过编程方式获取(并打印)生成的架构:

How to get the generated scheme file .graphqls using SPQR?

【讨论】:

    猜你喜欢
    • 2020-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-02-14
    • 1970-01-01
    • 2020-01-30
    • 2020-09-23
    • 2021-11-16
    相关资源
    最近更新 更多