From 3f2374bfca8ce09e619e06dd39de86e4f0d535c1 Mon Sep 17 00:00:00 2001 From: Ning Sun Date: Thu, 27 Oct 2022 19:51:51 +0800 Subject: [PATCH] feat: add information to our openapi docs --- src/servers/src/http.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/servers/src/http.rs b/src/servers/src/http.rs index 9c3648bed7..08f1bf95f8 100644 --- a/src/servers/src/http.rs +++ b/src/servers/src/http.rs @@ -242,10 +242,11 @@ impl HttpServer { } pub fn make_app(&self) -> Router { - // TODO let mut api = OpenApi { info: Info { - description: Some("an example API".to_string()), + title: "Greptime DB HTTP API".to_string(), + description: Some("HTTP APIs to interact with Greptime DB".to_string()), + version: HTTP_API_VERSION.to_string(), ..Info::default() }, ..OpenApi::default()