-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
RestClient Reactive: Support inheritance of sub resources #22417
RestClient Reactive: Support inheritance of sub resources #22417
Conversation
62706f7
to
2693dc8
Compare
} | ||
|
||
if (subMethod.getHttpMethod() == null) { | ||
// finding corresponding jandex method, used by enricher (MicroProfile enricher stores it in a field |
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.
This is the only change that was entered in this PR. The rest is a copy of what we had but in the new method handleSubResourceMethod
.
cc @michalszynkiewicz
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 2693dc8
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 11 #- Failing: extensions/resteasy-reactive/rest-client-reactive/deployment
! Skipped: extensions/oidc-client-reactive-filter/deployment extensions/resteasy-reactive/rest-client-reactive-jackson/deployment extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/deployment and 8 more 📦 extensions/resteasy-reactive/rest-client-reactive/deployment✖
✖
⚙️ JVM Tests - JDK 11 Windows #- Failing: extensions/resteasy-reactive/rest-client-reactive/deployment
! Skipped: extensions/oidc-client-reactive-filter/deployment extensions/resteasy-reactive/rest-client-reactive-jackson/deployment extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/deployment and 8 more 📦 extensions/resteasy-reactive/rest-client-reactive/deployment✖
✖
⚙️ JVM Tests - JDK 17 #- Failing: extensions/resteasy-reactive/rest-client-reactive/deployment
! Skipped: extensions/oidc-client-reactive-filter/deployment extensions/resteasy-reactive/rest-client-reactive-jackson/deployment extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/deployment and 8 more 📦 extensions/resteasy-reactive/rest-client-reactive/deployment✖
✖
|
Allow to use sub resources in client resources: Usage for first level: ```java @path("/path") @RegisterRestClient(baseUri = "http://localhost:8081") @consumes("text/plain") @produces("text/plain") public interface RootResource { @path("/sub") SubClient sub(); } ``` Second level: ``` @consumes("text/plain") @produces("text/plain") interface SubClient { @path("/sub") SubSubClient sub(); } ``` Third and N levels (this was unsupported and now it's supported): ``` @consumes("text/plain") @produces("text/plain") interface SubSubClient { @get @path("/simple") String simpleGet(); } ``` Fix quarkusio#22055
2693dc8
to
dc2b1cb
Compare
thanks a lot @Sgitario ! |
Allow to use sub resources in client resources:
Usage for first level:
Second level:
Third and N levels (this was unsupported and now it's supported):
Fix #22055