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
0
votes
2 answers

How to include dynamic path in Quarkus Rest Client request?

I'm working on a Quarkus application that uses a Rest Client to make HTTP requests to an external API. The endpoint is formed by a base url + a dynamic part (that comes from the UI) like…
0
votes
0 answers

How to test the request executed by a rest client in Quarkus?

I defined a simple interface to an external Rest service. import io.quarkus.rest.client.reactive.ClientQueryParam; import io.smallrye.mutiny.Uni; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.QueryParam; import…
Joost den Boer
  • 4,556
  • 4
  • 25
  • 39
0
votes
1 answer

Gradle how to setup project in child parent structure

I am very new to java. i want to setup Gradle project in such way so that all the project should refer to the internal folder for dependencies, and all project need to be in child-parent structure as below root-folders -main-project(root-project…
0
votes
0 answers

Error NoStackTraceTimeoutException with quarkus client

I have an rest service than consume other rest service on another server with a latency between 1500 and 3000 ms. If i send a few request all works fine. But if i make load test and send 200 request/seg I get too many errors of…
0
votes
1 answer

Failed to generate client for class interface ExampleRestClient : Sub resource type is not a class: io.smallrye.mutiny.Uni

After adding a Uni method to the ExampleRestClient, whenever I run the application locally and hit a route that uses the RestClient, I get these errors: Request failed: java.lang.RuntimeException: Error injecting com.example.client.ExampleRestClient…
0
votes
1 answer

Quarkus rest client: how to combine leveled rest client config in YAML config

I am using Quarkus rest client and I already have congis in YAML like: quarkus: rest-client: my-api: url: ${api.url} scope: javax.inject.Singleton connection-pool-size: 20 Now I want to add mp-rest/readTimeout and…
WesternGun
  • 11,303
  • 6
  • 88
  • 157
0
votes
1 answer

Quarkus rest client(w/o CompletionStage): calling 2 endpoints in order, how to define return type to have better performance

In Quarkus, rest client can be defined to return my DTO, or CompletionStage. I have 2 endpoints to call, first I want to retrieve some JobDTO from endpoint 1, then update it and save it back using 2nd endpoint. I observed that: If I define both…
WesternGun
  • 11,303
  • 6
  • 88
  • 157
0
votes
2 answers

@RegisterProvider not working for provider in an quarkus extension

I have a quarkus rest reactive implementation which uses a quarkus extension which I created. The extension is meant to intercept both the front side (server) and back side (client) requests and responses. The front side filter behaves as it should,…
tbkahuna
  • 1
  • 1
0
votes
0 answers

Quarkus rest-client-reactive unwrap restClientCdiWrapper to restClient?

I am having a problem with intercepting some of my rest client method info. For example In my interceptor I want to access parameter annotations in myRestClient method but when I switched to quarkus-restclient-reactive I am getting cdiWrapper.…
Wolf95
  • 1
  • 1
0
votes
1 answer

Cannot access dependency injected inside strategy pattern implementation class

I am trying to implement the strategic pattern,the problem is that I could not access any dependency injected inside the strategy implmentation classes, so here is my code Payment strategy interface public interface PaymentStrategy { public void…
0
votes
0 answers

How to get authorization bearer token from rest request on Quarkus

I am using quarkus in a new project and on o GET request I want to get the bearer token from the request. while I am testing the request with postman (or talent api) it work perfect and retrieves the response data, but with I am trying to add…
stg
  • 62
  • 2
  • 10
0
votes
0 answers

In quarkus/rest-client-reactive, can the 'caused-by' exceptions be thrown, instead of the wrappers?

I'm using quarkus both server and client rest reactive to implement a microservice which calls an upstream api. io.quarkus quarkus-resteasy-reactive-jackson
JJFraney
  • 54
  • 5
0
votes
0 answers

Quarkus LinkageError: loader constraint violation in interface itable initialization when running super-heroes workshop

I´m new to Quarkus so I was starting with the Quarkus super-hero workshop available here yet I´ve found a problem that seems to be already reported and solved in issue 23660 when running in dev mode: Caused by: java.lang.LinkageError: loader…
0
votes
0 answers

Injection issue for exception mapper with abstract parent (Quarkus REST client)

I'm trying to create an ExceptionMapper with an abstract parent class and some injected fields. Here is the part of code, simplified: @Provider @Produces(MediaType.APPLICATION_JSON) public class MyExceptionMapper extends…
athosga
  • 1
  • 1
0
votes
1 answer

Variable length endpoints in jax-rs/microprofile client with Quarkus

I'm facing the following issue and have been able to find a proper fix. As a use case example, let's imagine a Rest client that fetches a json object from a server, where the request is the path to the object. This api does not accept query…
Grizzlyman
  • 53
  • 6