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
17
votes
3 answers

Logging HTTP requests and responses in quarkus resteasy

I am running into a problem with calling a REST endpoint on a server, using a REST client in Quarkus, built with the org.eclipse.microprofile.rest.client.RestClientBuilder. I would very much like to debug the service, by writing the HTTP requests…
Martin Nielsen
  • 1,865
  • 6
  • 30
  • 54
11
votes
4 answers

Can I override quarkus application.properties value in my test class?

I have a value configured in my quarkus application.properties skipvaluecheck=true Now whenever I want to execute my tests, I want to have this value to be set to false instead of true. But I do not want to change in application.properties because…
Sandra
  • 419
  • 7
  • 17
11
votes
4 answers

How can I generate Quarkus rest JX-RS service based on given openapi 3.0.3 yaml file

Currently I am developing an application using quarkus. I have an openapi yaml file that describes everything. I wanted to know if there are quarkus extensions or tool with which I can generate the rest end points that would produce and consume same…
Sandra
  • 419
  • 7
  • 17
4
votes
4 answers

Quarkus could not find writer for content-type multipart/form-data rest client

I'm implementing an API-gateway for my rest microservice using Quarkus. I want to forward requests to another (Quarkus) rest-api. I'm trying to forward a POST request with multiform data. I'm expecting to get a 201 but I'm getting a 500 internal…
4
votes
1 answer

Vertx is not available in Quarkus vertx munity web client extesions

I tried to test the reactive web client provided by vertx munity web client. I followed the official guide Quarkus - Getting Started with Reactive. And added the following in dependencies.
Hantsy
  • 8,006
  • 7
  • 64
  • 109
4
votes
1 answer

How to configure ObjectMapper for Quarkus REST Client

I know that you can implement ObjectMapperCustomizer to configure the mapper for your Quarkus REST service. However, it's not clear in the documentation for Quarkus REST Client, whether it will use that same (global?) mapper or not. And how do you…
3
votes
1 answer

Is it possible to join two entities with panache?

I want to get two values from two different sql tables. In sql we would do "Select a.value, b.value from A a inner join B b on a.id = b.id where ..." Is it possible to do it with panache? Like join two entities or something like that? Can't really…
3
votes
2 answers

How do i pass a Bearer Token dynamically with Quarkus Microprofile Rest Client?

I'm trying to call a Keycloak Admin REST endpoint to create a keycloak user in my code and it requires the request to have a Bearer token added to the Authorization header. I need a way to pass the token dynamically to the rest client. I have to…
3
votes
1 answer

How to send response before actions in quarkus/Vert.X

Following similar question in spring. I want to be able to get in the router the response. and do a response flush, so I could continue work on the server without extending the RTT meaning, do something like the answer in spring: public void…
ohad edelstain
  • 1,425
  • 2
  • 14
  • 22
3
votes
1 answer

In Quarkus, is there a way to apply a Response Interceptor on the REST client calls?

I have a product REST API I need to use that returns things like: HTTP 200 OK { "return_code": "failure_x" } I cannot change that but I need to keep my project sane. Is there a Quarkus REST Client Response Interceptor I can use? It seems to me the…
Mashimom
  • 447
  • 1
  • 7
  • 18
3
votes
2 answers

Unable to map / fetch the response entity on 422 error code in Microprofile Rest Client

I have an API, when I call it through postman it gives the below response on the following cases: Case1: status code: 200 {"success": "student record is present", "error": null} Case2: status code: 422 {"success": null, "error": "studentname…
3
votes
1 answer

Jackson annotations quarkus resteasy client

I have a client package where I have defined my REST clients, containing the following interface and models: @Path("/") @RegisterRestClient(configKey = "some-api") public interface SomeRestClient { @POST @Path("/oauth/token") …
kiwiidb
  • 331
  • 2
  • 10
3
votes
1 answer

How to override Quarkus Resteasy urls during testing?

When doing integration tests with Quarkus Restclient / RESTEasy we would want to override the url and port during runtime. The reason for this is that if we build multiple modules in parallel we need to use random ports as otherwise we will get port…
tobad357
  • 288
  • 1
  • 6
3
votes
1 answer

How to test Quarkus REST client interface?

I am using the MicroProfile REST client in Quarkus and would like to know how I can unit test custom client interfaces? Example service: @Path("/v1") @RegisterRestClient public interface CustomService { @POST @Path("/custom") void…
3
votes
1 answer

Invalid env value with Quarkus RestClient property when create kubernetes deployment

Following the Quarkus Rest Client tutorial I need to add something similar to this to the application.properties file: country-api/mp-rest/url=https://restcountries.eu/rest With Docker it works and I can pass the property value by parameter: docker…
Emerson
  • 428
  • 5
  • 16
1
2 3
12 13