I m trying to make a request in which I want to include a Header , a form-urlencoded field and a json body. My Retrofit interface is as follows
@FormUrlEnc
I solved this problem by adding the field into
@POST("/api/register")
like this:
@POST("/api/register?grantType=value")
it's not a good solution, but may be useful.