Add OpenAPI support and health info endpoint documentation

This commit is contained in:
GW_MC
2025-12-05 17:01:29 +08:00
parent efdb47a117
commit 34ebfaddbc
7 changed files with 48 additions and 2 deletions

26
Cargo.lock generated
View File

@@ -3820,6 +3820,31 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
[[package]]
name = "utoipa"
version = "5.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2fcc29c80c21c31608227e0912b2d7fddba57ad76b606890627ba8ee7964e993"
dependencies = [
"indexmap 2.12.0",
"serde",
"serde_json",
"utoipa-gen",
]
[[package]]
name = "utoipa-gen"
version = "5.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d79d08d92ab8af4c5e8a6da20c47ae3f61a0f1dabc1997cdf2d082b757ca08b"
dependencies = [
"proc-macro2",
"quote",
"regex",
"syn 2.0.110",
"uuid",
]
[[package]]
name = "uuid"
version = "1.18.1"
@@ -4340,6 +4365,7 @@ dependencies = [
"tower",
"tracing",
"tracing-subscriber",
"utoipa",
]
[[package]]