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
1
vote
2 answers

ConfigProperty not injecting the value into the field

I am new to quarkus environment. I have a quarkus application where I'm trying to inject the property config using org.eclipse.microprofile.config.inject.ConfigProperty Here is the sample code public class Temp { @ConfigProperty(name =…
1
vote
2 answers

How do I correctly validate a REST request in Quarkus using Kotlin?

I'm currently creating an application in Quarkus, using Kotlin. I'm trying to create a simple users endpoint using RestEasy, Panache, and Hibernate. My challenge right now is that exception handling is not correctly done. I want to display a correct…
1
vote
1 answer

How can I determine the order of parameters for x-www-form-urlencoded in Microprofile RestClient?

Use Case I have following rest client @RegisterRestClient(configKey = "service") public interface Service { @POST @Path("Invoice") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_FORM_URLENCODED) Response…
alexander
  • 1,191
  • 2
  • 20
  • 40
1
vote
1 answer

RESTEASY003145: Unable to find a MessageBodyReader of content-type application/xml

I am trying to create a first-time Quarkus project. In this project I need to import a Jax-rs service interface from another package, and use it in a client in order to call a service. As such, I am using the RestClientBuilder, as opposed to the…
Martin Nielsen
  • 1,865
  • 6
  • 30
  • 54
1
vote
2 answers

Setting basic auth in microprofile rest client

I have a service which exposes a number of Jax-RS interfaces for its services. I now want to use those interfaces to connect with the services. I am using Quarkus, which means I am using the microprofile rest client. Because I already have the JaxRS…
Martin Nielsen
  • 1,865
  • 6
  • 30
  • 54
1
vote
1 answer

Add logging to all RestClient calls in Quarkus

I have a minimal Quarkus RestClient implemented, much like the example on documentation (https://quarkus.io/guides/rest-client): package org.acme.rest.client; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import…
Mashimom
  • 447
  • 1
  • 7
  • 18
1
vote
1 answer

Performance issue in quarkus microservice

I am having two microservices. The first one calls the second microservice via Vert.x client and the second microservice calls solr via Vert.x client. But there is a latency issue for all this process. The response comes up in 3-4 sec which is…
Pracheer Pancholi
  • 570
  • 2
  • 7
  • 21
1
vote
0 answers

Change build time configuration in Quarkus

I am running a Quarkus Rest Easy based Java application which is pulling data from an external application to load its cache. However I have recently started getting the exception below and the application cannot seem to be able to load the…
1
vote
0 answers

Is quarkus supporting gzip jwt tokens

I am using Smallrye JwtClaimsBuilder to build a token in my application. Is it possible to use gzip to compress the body of the token? I couldn't find something in the documentation about this. Of course I could use a different way to generate the…
1
vote
1 answer

ContextNotActiveException when using RestClient

I'm currently using quarkus to develop a microservice based application. I need to modify the SecurityIdentity (the user is authenticated with oidc) to inject a list of permissions retrieved from another microservice. I'm currently using this for…
E. Marotti
  • 89
  • 7
1
vote
1 answer

How to detect build time at runtime in Quarkus?

I am pretty new to Quarkus and I can't seem to find a way to obtain build information like build version or last built time at run time. Any insights will be appreciated.
Maggie
  • 13
  • 3
1
vote
2 answers

How to set base url and common rest URL from property file in Quarkus?

I am working on Quarkus application and what I want to do is to set the global path from application.properties file for all rest rest, my application is working but while calling rest request it is giving not found 404. @ApplicationScoped public…
user3458271
  • 638
  • 12
  • 31
1
vote
1 answer

Quarkus server-side http-cache

I tried to find out how to config. a server-side rest client (i.e. microservice A calls other microservice B using rest) to used a http cache. The background is, that the binary entities transfered over the wire can be quite large. Overall…
Mik86
  • 161
  • 1
  • 6
1
vote
1 answer

Can Readiness, Liveness check made active/inactive by configuration

I am playing around with Quarkus and I am trying to create ingestion service, which sends data to kafka or another REST endpoint. I have added "quarkus-smallrye-reactive-messaging-kafka" and "quarkus-reactive-messaging-http" dependencies to the…
anaray
  • 309
  • 1
  • 8
1
vote
1 answer

ClientRequestFilter get PathParameter

I have a JAX-RS rest client with following definition. @PUT @Path("/payments/{paymentId}/operation") void call(@PathParam("paymentId") String paymentId, Object request); I would like to intercept this outgoing request and read the paymentId value…
isADon
  • 3,433
  • 11
  • 35
  • 49