-
-
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
feat(openapi): allow user create app via openapi #4954
feat(openapi): allow user create app via openapi #4954
Conversation
apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/service/ConsumerService.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/ctrip/framework/apollo/openapi/server/service/ServerAppOpenApiService.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/ctrip/framework/apollo/openapi/server/service/ServerAppOpenApiService.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/ctrip/framework/apollo/openapi/server/service/ServerAppOpenApiService.java
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/service/ConsumerService.java
Outdated
Show resolved
Hide resolved
…/server/service/ServerAppOpenApiService.java Co-authored-by: Jason Song <nobodyiam@gmail.com>
….com/Anilople/apollo into feat/portal-allow-openapi-create-app
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppService.java
Show resolved
Hide resolved
Will add some tests later |
apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/v1/controller/AppController.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/ctrip/framework/apollo/openapi/server/service/ServerAppOpenApiService.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/ctrip/framework/apollo/openapi/server/service/ServerAppOpenApiService.java
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppService.java
Show resolved
Hide resolved
apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/v1/controller/AppController.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #4954 +/- ##
============================================
+ Coverage 48.48% 48.96% +0.48%
- Complexity 1726 1781 +55
============================================
Files 346 348 +2
Lines 10836 10991 +155
Branches 1080 1095 +15
============================================
+ Hits 5254 5382 +128
- Misses 5258 5279 +21
- Partials 324 330 +6
|
...lo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ConsumerController.java
Outdated
Show resolved
Hide resolved
...-portal/src/main/java/com/ctrip/framework/apollo/portal/entity/vo/consumer/ConsumerInfo.java
Show resolved
Hide resolved
apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/v1/controller/AppController.java
Outdated
Show resolved
Hide resolved
...lo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ConsumerController.java
Outdated
Show resolved
Hide resolved
…/v1/controller/AppController.java Co-authored-by: Jason Song <nobodyiam@gmail.com>
Co-authored-by: Jason Song <nobodyiam@gmail.com>
…controller/ConsumerController.java Co-authored-by: Jason Song <nobodyiam@gmail.com>
Co-authored-by: Jason Song <nobodyiam@gmail.com>
BTW, please also help to update the CHANGES.md. |
Done in 20a860f |
Done in 075c7a4 |
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
@Anilople it appears that the documentation for the new API is not included. Could you kindly assist in incorporating it into the documentation? |
What's the purpose of this PR
Allow user create app via openapi
Which issue(s) this PR fixes:
#4234
Dependency on apolloconfig/apollo-java#32
Brief changelog
Bind consumer to a role which can create app.
Just a poc code, please don't merge.
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.