Retrofit: Sending multidimensional array / or nested hash in GET request
I want to make a GET request for a path /realties
with some filtering options added to this request. The parameters might look like this:
?filter[num_rooms]=2&filter[region_coordinates][0]=[50,65]&filter[region_coordinates][1]=[51,62]
I cannot find a way to send such nested parameters with a Retrofit @GET request. I found that I can only send a map of strings:@QueryMap Map<String,String>
+3
source to share
No one has answered this question yet
Check out similar questions: