Skip to content

Commit bcb476d

Browse files
committed
chore: deprecate docs for swagger
1 parent becca19 commit bcb476d

File tree

2 files changed

+8
-0
lines changed
  • content
    • en/docs/hertz/tutorials/third-party/middleware
    • zh/docs/hertz/tutorials/third-party/middleware

2 files changed

+8
-0
lines changed

content/en/docs/hertz/tutorials/third-party/middleware/swagger.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ keywords: ["Swagger", "RESTful API"]
66
description: "Hertz middleware to automatically generate RESTful API documentation with Swagger 2.0."
77
---
88

9+
> **⚠️ Deprecated**
10+
>
11+
> This document has been deprecated. Please refer to [HTTP Adaptor Guide](../../basic-feature/http-adaptor/) to learn how to directly integrate swagger without hertz middleware.
12+
913
Hertz middleware to automatically generate RESTful API documentation with Swagger 2.0.
1014

1115
The implementation of the [swagger](https://github.com/hertz-contrib/swagger) extension refers to the implementation of [Gin](https://github.com/swaggo/gin-swagger).

content/zh/docs/hertz/tutorials/third-party/middleware/swagger.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ keywords: ["Swagger", "RESTful API"]
66
description: "用 Swagger 2.0 来自动生成 RESTful API 文档的 Hertz 中间件。"
77
---
88

9+
> **⚠️ 已废弃**
10+
>
11+
> 本文档已废弃,请参考 [HTTP Adaptor 指南](../../basic-feature/http-adaptor/) 了解如何在不使用Hertz中间件的情况下直接集成Swagger。
12+
913
这是一个用 Swagger 2.0 来自动生成 RESTful API 文档的 Hertz 中间件。
1014

1115
参考了 gin 的 [实现](https://github.com/swaggo/gin-swagger),对 Hertz 进行了适配。

0 commit comments

Comments
 (0)