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
1 answer

Quarkus/Kotlin: An annotation argument must be a compile-time constant with a java class

In a quarkus/kotlin app, I have a rest client that is very basic: @Path("/my/api/v1") @RestClient interface MyApiClient { } Problem is, when a request fails, it returns a response that fails to be mapped. So I want to add an exception mapper, in…
Rolintocour
  • 2,934
  • 4
  • 32
  • 63
1
vote
0 answers

Quarkus configurable Path from spring-cloud-config

We are currently migrating from spring-boot to quarkus. In spring-boot, we used to have the path take the pathvariable from spring-cloud-config using expression language using this: @RequestMapping("${url.microservice.controller.base-path}") This…
1
vote
1 answer

How to solve java.lang.RuntimeException: RESTEASY007545: Unable to find a MessageBodyReader for media type

I'm using Quarkus version 1.5.1, however when trying to send data of type LocalDate (or Date) of a form, it returns the following error message: java.lang.RuntimeException: RESTEASY007545: Unable to find a MessageBodyReader for media type: text /…
1
vote
1 answer

quarkus-rest-client can't be used with @ApplicationScoped beans for native images: No instances of sun.security.provider.NativePRNG allowed in heap

Sample project to reproduce this issue available on Github I'm using quarkus-rest-client to invoke a REST service from my Quarkus application. ExampleResource offers one endpoint http://localhost:8080/echo that calls https://postman-echo.com/get…
codependent
  • 23,193
  • 31
  • 166
  • 308
0
votes
1 answer

Why are javax.validation annotations being enforced throughout the application code in Quarkus?

Scenario : Quarkus version 2.16.5Final , RestEasy Rest End point which uses Hibernate validation for validation. Incoming Request POJO @Valid class Employee{ @NotEmpty String empId; String deptId; } Upon receiving such a request I copy this over to…
Kiran K
  • 703
  • 4
  • 11
0
votes
0 answers

Quarkus receive Multipart

I have a microservice that receives a Rest Post call, and must return a MultipartFormDataOutput (or something equivalent) with json and several bytes of images. I have another microservice that makes a Rest Post call to this service, it needs to…
Regolus
  • 1
  • 1
0
votes
1 answer

How to pass GET query parameters in Quarkus as POJO object?

I'm switching from Spring to Quarkus and this doesn't seem to work the same way. There are classes defined: @Path("/example") public class ExampleResource { @GET public List search(ExampleSearchParams params) { Log.info(params); …
Politechniczny
  • 453
  • 3
  • 13
0
votes
1 answer

Why does Quarkus/Microprofile rest client Response.getEntity() return null?

using Quarkus 3.0.3 Final I have the following rest client declaration: @RegisterRestClient(configKey="my-api") @RegisterProvider(value = ErrorMapper.class, priority = 50) public interface SubscriberClient { @POST @Path("/v1") …
user432024
  • 4,392
  • 8
  • 49
  • 85
0
votes
0 answers

Quarkus Rest Easy dependency injection error in @RestClient, when Gateway interface is also implemented

Quarkus legacy RestEasy gives error of "unsatisfied dependency" when @RestClient annotation is used on gateway to inject in service layer and Mock of that same gateway is also implemented at the same time. The gateway is like…
0
votes
0 answers

javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type RestClient

I have a Quarkus application v2.15.3.Final using Java 17. The application does have one API endpoint which fetches the data using the third-party API and processes them. To hit the third-party API I am using the RestClient. However when I start the…
anonymous
  • 173
  • 1
  • 15
0
votes
1 answer

Quarkus Open Telemetry (distributed tracing) does not carry over traceId across Threads

Here is a sample application I have written to explain the problem. Below is a rest end point that receives a request and on a different thread performs some operations. As you will see , the traceId is not copied over as soon as the execution goes…
Kiran K
  • 703
  • 4
  • 11
0
votes
1 answer

Quarkus extension with resteasy reactive client

I am writing a Quarkus extension that servers some endpoints. ı am using quarkus-resteasy-reactive-jsonb for my endpoints. But registering endpoints like regular beans is not working, yes I can inject the endpoint class and call the methods but…
0
votes
0 answers

What is needed for @TestHTTPEndpoint to work?

I have a unit test annotated with @QuarkusTest. There I want to inject two url's using @TestHTTPEndpoint like…
0
votes
0 answers

resteasy-reactive-client does not delete Attr_ temp files for Multipart requests

Hello dear quarkus community, I am currently having issues with the deletion of temporary files when executing multipart http-requests with the reactive client. I have a native quarkus application ("sender") running on a server that sends files to a…
0
votes
0 answers

Quarkus Rest client and AWS Signature authentication

I want to plug a Quarkus Rest Client on an AWS REST API Gateway which requires authenticating requests using AWS Signature. How to integrate Quarkus Rest Client (@RegisterRestClient) with AWS Signature v4 authentication? As far as I understand, it…