@RestClient - the current @Target is wrong
See original GitHub issueThe current value is @Target({ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD})
.
- It’s not possible to inject a rest client into a method or a constructor parameter (missing
ElementType.PARAMETER
). - It’s not possible to define test mocks for rest client interfaces (missing
ElementType.TYPE
).
CDI qualifiers typically define the target as follows: @Target({METHOD, FIELD, PARAMETER, TYPE})
. ElementType.CONSTRUCTOR
is completely useless.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Error showing while using RestSharp RestClient method
The error is gone because ExecuteAsync takes a RestRequest argument. Now you have to make sure to handle the async nature correctly, by...
Read more >Connection is being rejected for localhost · Issue #523 - GitHub
Symptom: Connection is being rejected. The service isn't running on the server, or incorrect proxy settings in vscode, or a firewall is blocking...
Read more >Using the REST Client Reactive - Quarkus
This guide explains how to use the REST Client Reactive in order to interact with REST APIs. ... quarkus.rest-client.extensions-api.verify-host=false ...
Read more >Missing definitions (Versions) - MSDN - Microsoft
I've updated the target framework to 4.6. I can't find any documentation on RestClient. Tuesday, March 31, 2020 9:11 ...
Read more >Home of Quarkus Cheat-Sheet - GitHub Pages
json.print-details. Detailed caller information should be logged (default: false). Rest Client. Quarkus implements ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good idea. I added it to my PR. Thanks for the input!
It could be useful when creating mocks: