-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
Triple Rest Openapi Support #14924
Triple Rest Openapi Support #14924
Conversation
a282148
to
73eafc1
Compare
a289a60
to
6dcf7ab
Compare
32495cd
to
2bcfda3
Compare
a355c96
to
a063255
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 3.3 #14924 +/- ##
============================================
- Coverage 64.34% 60.75% -3.60%
- Complexity 10782 10864 +82
============================================
Files 1819 1882 +63
Lines 80959 85983 +5024
Branches 12039 12876 +837
============================================
+ Hits 52094 52238 +144
- Misses 23477 28296 +4819
- Partials 5388 5449 +61
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
NPE will be thrown at org.apache.dubbo.rpc.protocol.tri.servlet.HttpMetadataAdapter because
https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-triple-servlet NPE:
it might be fixed by #15141 |
What is the purpose of the change?
Add OpenAPI support for Triple REST protocol, enabling automatic OpenAPI documentation generation
for dubbo services. The implementation includes:
How to testing
Automatically generates OpenAPI documentation for all Dubbo services with zero configuration:
Access Swagger UI:
Access OpenAPI Spec:
Supported formats:
/dubbo/openapi/api-docs
/dubbo/openapi/api-docs.yaml
Optional filters:
/dubbo/openapi/api-docs/{group}
/dubbo/openapi/api-docs?version=1.0.0
/dubbo/openapi/api-docs?tag=user,order
Example
Start
dubbo-demo/dubbo-demo-spring-boot/dubbo-demo-spring-boot-servlet
then access:
Show case