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

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

I am working on a project on which server-side I have used REST service for my APIS. If I use the REST service in the main function of a class, it is working fine. But when I calling it from a servlet that using Quarkus-resteasy, it throws…
0
votes
0 answers

Implement Quarkus REST Client

I have created some interface to a 3rd party service: @RegisterRestClient public interface FooService { @Path("/foo") @POST MyResponse foo(MyRequest request, @HeaderParam("X-Bla") String xBla); ... This is working fine. But then, I…
wiradikusuma
  • 1,930
  • 4
  • 28
  • 44
0
votes
2 answers

REST Client Sub-resources return AbstractMethodError when invoked

EDIT: Problem was quarkus-rest-client-reactive, see my answer. From my understanding of the MicroProfile REST Client available in Quarkus, I should be able to define sub-resources in my REST client interface that will allow me to nest resources…
Adam J
  • 1
  • 1
0
votes
0 answers

How can I combine database calls and REST calls into a single aggegrate?

I am currently developing an API which needs to "extend" its own data (my database) with the data I receive from another API. I have an inventory class/aggregate in the domain layer with a repository interface which is implemented in the…
0
votes
1 answer

Access to aurora Mysql db using MySqlPool quarkus reactive client and AWS IAM

Is it possible to access Aurora db using MySqlPool quarkus reactive client with AWS IAM ? Or is there any specific client like Amazon DynamoDbClient(for dynamo db access) in quarkus for Aurora Mysql db access ?
0
votes
1 answer

Quarkus Jax-rs clients with external interfaces

I started playing around with Quarkus and its REST client. According to the documentation a Jax-RS annotated interface should be created and annotated further with @RegisterRestClient. My issue is that I already have the JaxRS interfaces for the…
Martin Nielsen
  • 1,865
  • 6
  • 30
  • 54
0
votes
0 answers

Running Specs2 with Quarkus

I am trying to run Specs2 with Quarkus. My test classes are annotated with @QuarkusTest. When I try to run the tests with maven, it does not find any tests. I tried adding the @RunWith(classOf[JUnitRunner]) annotation, but that made no difference.…
0
votes
0 answers

File upload to Jersey from Quarkus

I need to upload a file from Quarkus application to jesrey 2 rest service which is expecting two params like @FormDataParam("file") InputStream uploadFileInputStream, @FormDataParam("file") FormDataContentDisposition fileMetaData Used below code in…
0
votes
1 answer

MySqlPool quarkus reactive client doesn't autoclose

I am using quarkus-narayana-jta for transaction management and using reactive MysqlPool to insert into db. MysqlPool class is not Autoclosable so do we need to explicitly call close() method from Pool class to close in case failure occurs or is it…
Pracheer Pancholi
  • 570
  • 2
  • 7
  • 21
0
votes
1 answer

Error while running Quarkus Production Jar

The application starts successfully when running the command java -jar target/quarkus-app/quarkus-run.jar While consuming the API from the external source, I got the 500 response, and below is the log got from the terminal. ERROR…
0
votes
0 answers

How to set the URI in a Microprofile RestClientBuilder Provider in Quarkus

I'm using the Microprofile RestClientBuilder in a Quarkus extension. I'm using a custom provider that implements the ClientRequestFilter interface. I want to set the URI in the filter with this method: ClientRequestContext.setURI(); But, previously…
Luisao
  • 455
  • 2
  • 9
  • 20
0
votes
2 answers

How to handle failure in reactive my sql client in quarkus

In https://quarkus.io/guides/reactive-sql-clients page we have code snippet to execute query changes using transaction : SqlClientHelper.inTransactionUni(client, tx -> tx .preparedQuery("INSERT INTO person (firstname,lastname) VALUES…
0
votes
1 answer

Optional response body for rest client using RESTEasy

I'm writing a POC for Quarkus. I'm using this quick start guide to build a REST client. The REST service I'll be integrating with is third party. Here is a simple example of my current implementation: @Path("/v1") @RegisterRestClient public class…
user0000001
  • 2,092
  • 2
  • 20
  • 48
0
votes
0 answers

Swagger UI not showing when Quarkus api deployed to Kubernetes

I have deployed an api that is developed on Quarkus to Kubernetes by enabling swagger with the properties, quarkus.swagger-ui.always-include=true quarkus.swagger-ui.path=/swagger-ui.html In local swagger comes up, but when deployed to Kubernetes,…
0
votes
1 answer

How to read platform properties for JUnits in Quarkus Application

I am writing JUnits for my Quarkus Application but getting below error on execution: Caused by: javax.enterprise.inject.spi.DeploymentException: No config value of type [java.lang.String] exists for: Here it is looking for the properties mentioned…