gqldoc:为GraphQL制作API文档的最简单方法

时间:2021-04-01 22:08:17
【文件属性】:
文件名称:gqldoc:为GraphQL制作API文档的最简单方法
文件大小:278KB
文件格式:ZIP
更新时间:2021-04-01 22:08:17
go graphql golang documentation graphql-schema GraphQL的文档生成器 gqldoc现在是Alpha gqldoc是用于从GraphQL模式或GraphQL端点生成文档的命令行工具。 该命令由Go 1.16编写。 因此,如果要构建,则需要Go 1.16及更高版本。 演示版 公共架构在 如何使用 从graphql端点生成文档 您需要启用GraphQL。 支持--header和--query选项。 $ gqldoc -e http://127.0.0.1:8081/query --header ' Authorization: Bearer token ' -o ./doc_dir 从graphql模式文件生成文档 支持.json和.graphql , .gql扩展。 .json必须包含自省的结果。 $ gqldoc -s schema.graphql -o ./doc_dir 如果要指定多个架构,则可以重复使用--sche
【文件预览】:
gqldoc-main
----.goreleaser.yml(1KB)
----.gitignore(16B)
----go.mod(352B)
----Makefile(152B)
----LICENSE(1KB)
----go.sum(8KB)
----.github()
--------ISSUE_TEMPLATE()
--------workflows()
----README.md(2KB)
----example()
--------.gitkeep(0B)
--------starwars()
--------github()
----loader()
--------loader.go(976B)
----cmd()
--------gqldoc()
----internal()
--------pool()
--------markdown()
--------introspection()
--------gqlgen()

网友评论