-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support swagger UI to viewing API #1880
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1880 +/- ##
============================================
+ Coverage 66.89% 70.94% +4.05%
- Complexity 728 982 +254
============================================
Files 449 449
Lines 38116 38119 +3
Branches 5404 5404
============================================
+ Hits 25496 27043 +1547
+ Misses 10104 8429 -1675
- Partials 2516 2647 +131
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for your contribution, some tiny comments
//load for swagger ui | ||
this.httpServer.getServerConfiguration().addHttpHandler( | ||
new StaticHttpHandler( | ||
"swagger-ui"), "/swagger-ui"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot it, thanks
@@ -65,6 +66,10 @@ public void start() throws IOException { | |||
|
|||
this.httpServer = this.configHttpServer(uri, rc); | |||
try { | |||
//load for swagger ui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"// Register swagger-ui http handler"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@wangyao2016 could you please describe the diff since last review? |
@javeme Thank you for reviewing in time. To facilitate version maintenance, use the same variable to maintain the version. |
description = "All management API for HugeGraph", | ||
contact = | ||
@Contact( | ||
url = "https://github.com/apache/incubator-hugegraph", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use this address https://github.com/apache/hugegraph
and it will be automatically redirected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@wangyao2016 tips: in order to diff the changes we need to use git commit
instead of git commit --amend
as possible
@wangyao2016 could you run
and deal with code to conform with the specifications |
@seagle-yuan Sure. First of all, make sure you mean these unused imports? |
yeah, this is just a case, suggest you deal with all the code that you coded |
I've done it. But just found these unused imports. Can you give me a screenshot? |
perfect feature |
@wangyao2016 Excuse me, wonder to know the could like use execute Contact me directly when free, thanks a lot 😸 |
Detail descrition for this feature please check #1879
We can view swagger UI by
/swagger-ui/index.html
like:http://127.0.0.1:8080/swagger-ui/index.html