javeme commented on code in PR #1880:
URL:
https://github.com/apache/incubator-hugegraph/pull/1880#discussion_r872629810
##########
hugegraph-api/src/main/java/com/baidu/hugegraph/server/RestServer.java:
##########
@@ -65,6 +66,10 @@ public void start() throws IOException {
this.httpServer = this.configHttpServer(uri, rc);
try {
+ //load for swagger ui
+ this.httpServer.getServerConfiguration().addHttpHandler(
+ new StaticHttpHandler(
+ "swagger-ui"), "/swagger-ui");
Review Comment:
could you please improve the code style:
https://github.com/apache/incubator-hugegraph-doc/wiki/HugeGraph%E4%BB%A3%E7%A0%81%E9%A3%8E%E6%A0%BC%E6%8C%87%E5%8D%97
##########
hugegraph-api/src/main/java/com/baidu/hugegraph/server/RestServer.java:
##########
@@ -65,6 +66,10 @@ public void start() throws IOException {
this.httpServer = this.configHttpServer(uri, rc);
try {
+ //load for swagger ui
Review Comment:
"// Register swagger-ui http handler"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]