Feign makes writing java http clients easier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

402 B

Moshi Codec

This module adds support for encoding and decoding JSON via the Moshi library.

Add MoshiEncoder and/or MoshiDecoder to your Feign.Builder like so:

GitHub github = Feign.builder()
                     .encoder(new MoshiEncoder())
                     .decoder(new MoshiDecoder())
                     .target(GitHub.class, "https://api.github.com");