0

Is there any way I could use Retrofit and replace the parameter = operator sign with my own operator (e.g. *equals*).

@GET("/endpoint")
Class method(@Query("Key") int value)

This creates

/endpoint/method?Key=value

but I need

/endpoint/method?Key*equals*value

Thanks

1 Answers1

-1

You can try to do a workaround:

@GET("/endpoint?key*equals*{key_value}")
Class method(@Path("key_value") int value)
Ilya Tretyakov
  • 6,848
  • 3
  • 28
  • 45
  • Thanks for the tip but according to http://stackoverflow.com/questions/24100372/retrofit-and-get-using-parameters { } is not possible in parameter part. – user2728031 Dec 02 '16 at 12:37