Skip to content
Permalink
Browse files
using EmptyBodyInterceptor to configure the client
  • Loading branch information
mgeiss committed Sep 27, 2017
1 parent 3b9e910 commit 6b8d1e53ec49294d346135d65756450ed38add79
Showing 1 changed file with 2 additions and 0 deletions.
@@ -21,6 +21,7 @@
import feign.gson.GsonEncoder;
import io.mifos.anubis.config.EnableAnubis;
import io.mifos.core.api.util.AnnotatedErrorDecoder;
import io.mifos.core.api.util.EmptyBodyInterceptor;
import io.mifos.core.api.util.TenantedTargetInterceptor;
import io.mifos.core.api.util.TokenedTargetInterceptor;
import io.mifos.identity.api.v1.client.IdentityManager;
@@ -55,6 +56,7 @@ public IdentityManager identityManager(
.errorDecoder(new AnnotatedErrorDecoder(logger, IdentityManager.class))
.requestInterceptor(new TenantedTargetInterceptor())
.requestInterceptor(new TokenedTargetInterceptor())
.requestInterceptor(new EmptyBodyInterceptor())
.decoder(new GsonDecoder())
.encoder(new GsonEncoder())
.target(IdentityManager.class, "http://identity-v1/identity/v1");

0 comments on commit 6b8d1e5

Please sign in to comment.