We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While trying to use FormEncoder with JacksonEncoder encoder faced with ignoring 2nd one.
Wrapping JAX-RS with Feign
Feign.builder() .encoder(new FormEncoder(new JacksonEncoder())) .decoder(new JacksonDecoder()) .contract(new JAXRSContract()) .logger(new FeignSlf4jMultilineLogger(ApiClient.class)) .logLevel(Logger.Level.FULL) .target(ApiClient.class, address);
JAX-RS service
public interface ApiClient { @POST @Path("/token/") @Consumes(MediaType.APPLICATION_FORM_URLENCODED) Response getAccessToken(@HeaderParam("Authorization") String authSecret, Request request); }
Request
@Getter @Setter public class Request { @JsonProperty("client_id") private String clientId; @JsonProperty("scope") private String scope; @JsonProperty("grant_type") private String grantType;
Request sends with grantType=something&scope=something&clientId=11111
What should we add not to ignore JsonProperty annotations?
The text was updated successfully, but these errors were encountered:
Have you tried @FormProperty("client_id")?
@FormProperty("client_id")
Sorry, something went wrong.
can be connected with:: #95
No branches or pull requests
While trying to use FormEncoder with JacksonEncoder encoder faced with ignoring 2nd one.
Wrapping JAX-RS with Feign
JAX-RS service
Request
Request sends with grantType=something&scope=something&clientId=11111
What should we add not to ignore JsonProperty annotations?
The text was updated successfully, but these errors were encountered: