Skip to content
Permalink
Browse files
Merge pull request #1 from markusgeiss/develop
using EmptyBodyInterceptor to configure the client
  • Loading branch information
markusgeiss committed Sep 27, 2017
2 parents 3b9e910 + 6b8d1e5 commit 5dae48798f97d52833de59a241ef2ecce9abdbc7
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 5dae487

Please sign in to comment.