I have an instance where I need to pass multiple of the same named parameters to a server (array of data).
Changing it is not a possibility.
http://test
Retrofit as of 1.4.0 added the ability to send an array or List as a @Field
or @Query
parameter.
New: @Query and @EncodedQuery now accept List or arrays for multiple values.
New: @Field now accepts List or arrays for multiple values.
I am using retrofit:1.9.0, one way of doing http://test.com?test[]=1&test[]=2&test[]=3 is like this
void test(@Query("test[]") ArrayList<String> values);