Questions tagged [quarkus-rest-client]

Quarkus MicroProfile REST Client used to interact with REST APIs with little effort.

Quarkus MicroProfile REST Client used to interact with REST APIs with little effort.

Use guide available at https://quarkus.io/guides/rest-client

181 questions
2
votes
1 answer

How to properly chain calls to external API's using Mutiny and process the response? Java / Quarkus / Mutiny

I'm a beginner on asynchronous Java programming and I'm trying to understand how to properly use Mutiny for a Quarkus application which has a Client that sends requests to an external API. This client has two methods that return Uni. Those are the…
2
votes
0 answers

custom Quarkus Extension can't create a REST client of a standard JAXRS interface

I have a custom Quarkus extension built with quarkus 2.16.4.Final, which uses quarkus-rest-client-reactive-jackson to create a rest client of a JAXRS interface: import javax.ws.rs.POST; import javax.ws.rs.PathParam; public interface MyContract { …
Rahul
  • 21
  • 2
2
votes
0 answers

Quarkus REST client: The element has invalid child element when sending XML

It is not possible for me to use the Quarkus Rest client (org.eclipse.microprofile.rest.client), because it modifies the XML under the hood and makes it invalid. In detail: I have some XML which looks like…
Bevor
  • 8,396
  • 15
  • 77
  • 141
2
votes
1 answer

Quarkus test rest client java.net.ConnectException: Connection refused: connect

I'm trying to test a rest client on quarkus. I've read the doc and downloaded the demo project. In the demo project called rest-client-quickstart the tests are working fine see ExtensionsResourceTest. I've done the exact same things that are in the…
Pp88
  • 830
  • 6
  • 19
2
votes
0 answers

Quarkus send/receive through Reactive REST API "huge" stream

I'm struggling with my proof of concept. Here is the main idea: On one side, the REST API Server shall allow to get and send "stream" (as InputStream, not File) On other side, the client shall do the same, reversely, again as InpuStream (possibly…
Frederic Brégier
  • 2,108
  • 1
  • 18
  • 25
2
votes
1 answer

Quarkus Rest-Client Throttling/Rate Limiting

I am using quarkus.rest-client to call an external API and want to limit the frequency of those calls to say 50 per second, such that I don't drown the external service. What is the recommended way of achieving this without a side-car approach…
jaivalis
  • 488
  • 4
  • 19
2
votes
2 answers

Quarkus integration testing against running application

As described in the official documentation, it should be possible to run the @QuarkusIntegrationTest against a running application. This feature looks incredibly useful, especially if I can run these integration test against a Quarkus service…
2
votes
0 answers

Build error in QuarkusTest due to @RestClient

I try to write a QuarkusTest in order to test a class that is actually working as an ElasticSearchStore. In the app, there is a rest client for accessing GoogleMaps API which looks like: @RegisterRestClient(configKey = "google-maps-api") …
2
votes
2 answers

Unrecognized configuration key was provided; it will be ignored; verify that the dependency extension for this configuration

I am using STS IDE and developed a quarkus project following below example https://quarkus.io/guides/rest-client When I tried building the code using compile quarkus:dev -DSkipTests=true command, I observed below warnings saying its unable to…
2
votes
2 answers

Quarkus use both Authorization and Cookie for jwt authorization

I would like to write an app that allows for both RESTful forms of interacting with the data; regular REST CRUD endpoints and a web-ui. In the past, I have gone the route of implementing much of the functionality of the UI in JS, which would call…
Snappawapa
  • 1,697
  • 3
  • 20
  • 42
2
votes
0 answers

Cookie management in Quarkus

How do I configure cookie management in the Quarkus rest client? I am building a client to an API that sets a session cookie on login and then uses that session cookie for auth - a pretty standard stateful API. It seems that with default behaviour…
Boris the Spider
  • 59,842
  • 6
  • 106
  • 166
2
votes
1 answer

Error when trying to make a REST Call in Quarkus

I'm trying to execute a request at another service that I own. The guides I'm using to create the app are: QUARKUS - Using the REST Client QUARKUS - CDI Reference QUARKUS - Workshop I'm getting an error…
Johnnes Souza
  • 361
  • 1
  • 8
  • 22
2
votes
2 answers

Quarkus / Restclient with proxy configuration

I am using quarkus 1.10.5.Final and need to call web service with web proxy. Currently my code using microprofile client proxy and put below configuration in…
user1629290
  • 21
  • 1
  • 3
2
votes
1 answer

Qurakus Serialize "primitives" in RestClient

I am struggling with the Quarkus RestClient. First create a Controller that simply print our request body: e.G. @Path("/test") public class ExampleController { @PUT public void test(String data) { …
user3046582
  • 341
  • 3
  • 15
2
votes
1 answer

Looking for the best way to share an interface between microservices with quarkus

I'm still quite new to microservices and have a few basic architectural questions that I can't get solved right now. I'm using the Quarkus framework with the standard extensions like quarkus-resteasy and quarkus-rest-client for the realization. The…
1
2
3
12 13