Documentation
¶
Overview ¶
Package swagger 内嵌 OpenAPI 文档与 Swagger UI,服务启动即可浏览 API 文档。 路由:GET /swagger/ (UI)、GET /swagger/openapi.json (spec)。 spec 文件由 `go run ./cmd/apidoc` 从 idl/*.thrift 生成,`make apidoc` 同步更新。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenAPISpec ¶
func OpenAPISpec(ctx context.Context, c *app.RequestContext)
OpenAPISpec 返回 OpenAPI 3.0 JSON spec。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.