-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
refactor: let open api more easier to use and development #3943
refactor: let open api more easier to use and development #3943
Conversation
apollo-openapi/src/main/java/com/ctrip/framework/apollo/openapi/client/ApolloOpenApiClient.java
Outdated
Show resolved
Hide resolved
...portal/src/main/java/com/ctrip/framework/apollo/openapi/v1/controller/ClusterController.java
Outdated
Show resolved
Hide resolved
…i/client/ApolloOpenApiClient.java Co-authored-by: Jason Song <nobodyiam@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #3943 +/- ##
============================================
- Coverage 51.11% 51.09% -0.03%
- Complexity 2483 2489 +6
============================================
Files 476 481 +5
Lines 14681 14723 +42
Branches 1521 1521
============================================
+ Hits 7504 7522 +18
- Misses 6651 6674 +23
- Partials 526 527 +1
Continue to review full report at Codecov.
|
Use 'T(org.springframework.web.context.request.RequestContextHolder).currentRequestAttributes().getRequest()' instead of '#request'
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.
Thanks for the contribution! It looks good to me, would you please update the CHANGES.md?
Done |
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
What's the purpose of this PR
Let open api more easier to use and development.
Just a simple demo, not the final code.
Which issue(s) this PR fixes:
Fixes #3942
Brief changelog
Add interfaces ApolloXXXOpenApi under java package
com.ctrip.framework.apollo.openapi.api
.Let controller under java package
com.ctrip.framework.apollo.openapi.v1.controller
implement each ApolloXXXOpenApi as server.An interface ApolloOpenApi extends them all, let com.ctrip.framework.apollo.openapi.client.ApolloOpenApiClient implement ApolloOpenApi with compability.
Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean test
to make sure this pull request doesn't break anything.CHANGES
log.