Feign is a java to http client binder inspired by Retrofit, JAXRS-2.0, and WebSocket. Feign's first goal was reducing the complexity of binding Denominator uniformly to http apis regardless of restfulness.
Questions tagged [feign]
635 questions
3
votes
2 answers
Upload data file as byte array with Feign
How can I send file in Feign as byte array?
@RequestLine("POST /api/files/{num}/push")
@Headers({"Content-Type: application/zip"})
void pushFile(@Param("num") String num, @Param("file") byte[] file);
This is not working and passing the data…

Zveratko
- 2,663
- 6
- 35
- 64
3
votes
0 answers
Spring multiple non overriding abstract methods found in interface
I'm facing some difficulties while trying to understand how to deal with feign client that extends an interface that has more than one method (end-point). This is a RestController of one of my microservices : …

user3819295
- 861
- 6
- 19
3
votes
2 answers
Prevent Feign from adding a trailing slash to the URL
I am trying to retrieve an online image content in a Spring Boot application by using the below Feign client.
@FeignClient(name = "image")
public interface ImageClient {
@RequestMapping(method = RequestMethod.GET)
byte[] getContent(URI uri)…

adrum
- 53
- 1
- 4
3
votes
1 answer
Spring BasicAuthenticationFilter.doFilter() very slow
In my Spring Boot 2.0.5 App I'm using basic-auth to secure REST-API's.
@Configuration
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(final HttpSecurity http) throws…

saimonsez
- 344
- 3
- 16
3
votes
2 answers
How to integrate opentracing/jaeger with spring cloud, hystrix and feign?
We lately setup a jaeger server in order to trace all requests throughout our system. The initial setup worked pretty nicely by simply adding the necessary spring (cloud) starter dependencies to our build files. Each time, a request hits one of our…

u6f6o
- 2,050
- 3
- 29
- 54
3
votes
0 answers
Feign SSL client configuration - https
i would need create a custom Feign client which will be able to call server api with .p12 client certificate with password. This is HTTPS communication.
Is possible do this? I try override client with configuration
@Configuration
public class…

Lukas
- 103
- 1
- 9
3
votes
1 answer
How to download File with open-feign
How to download File with open-feign, it's possible?
for example:
@RequestLine("GET /file")
File from (@Param("param") String param);

tsarenkotxt
- 3,231
- 4
- 22
- 38
3
votes
3 answers
Adding OkHttp custom interceptor to Feign client
I'm having problems to set up a global OkHttp interceptor for my @FeignClient beans. I'm not experiencing any error, but the interceptor is being ignored.
My understanding is that Spring Cloud's auto configuration should pick the…

fps
- 33,623
- 8
- 55
- 110
3
votes
1 answer
Netflix Feign Code Generation using Swagger
I found the project https://github.com/swagger-api/swagger-codegen .
However this is generating a client that is based on OpenFeign.
Is there a way to generate a client interface automatically that uses Netflix's feign annotation with request…

Menelaos
- 23,508
- 18
- 90
- 155
3
votes
0 answers
Array Multipart[] file upload using Feign client
I am trying to upload Array of Multipart file object using feign client.
This is the service am trying to call using Feign client.
public ResponseEntity

Jagadheeswaran Mohan
- 339
- 1
- 3
- 18
3
votes
3 answers
Feign client custom interceptor for JWT token validation
I am new to spring and feign and exploring since a couple of days.
I am able to make auth request to our protected resources(username/password) and using the JWT token returned by auth service in the subsequent request headers.
However, i would like…

PabloMayor
- 31
- 1
- 1
- 3
3
votes
2 answers
Multipartfile in a form using feign
I'm having a problem uploading an image using feign. I have multiple services using spring cloud. Version of my dependencies below
spring boot - 1.4.3.RELEASE
spring-cloud-starter-feign - 1.1.3.RELEASE
io.github.openfeign.form -…

rhandom
- 1,198
- 3
- 10
- 15
3
votes
1 answer
Feign Oauth how to manually set the bearer token value?
I'm developping a Rest API, MyApi.
In there, I'm using Feign (and swagger codegen) to generate a client for another API, let's call it Ext-API.
The user will have called Ext-API previously and among other things will have retrieved a JWT…

TheBakker
- 2,852
- 2
- 28
- 49
3
votes
5 answers
Feign Client and name from properties
I have sth like this,
@FeignClient(name = "${airport.service.name}")
And I have compilation error like,
java.lang.IllegalStateException: Service id not legal hostname (${airport.service.name})
The question is how can I pass hostname form…

user3528733
- 1,259
- 7
- 20
- 37
3
votes
2 answers
How to use a @FeignClient to map a HAL JSON _embedded collection
We're trying to use a spring-cloud @FeignClient to call the HAL-JSON REST API of a microservice from another microservice. The service is implemented with Spring Data Rest, Spring Boot 1.4, with Hateoas enabled by default.
Using a dedicated DTO on…

megli
- 31
- 6