I want to execute a batch request using Retrofit. This is a good way there, how to achieve it? Basically, what I'm trying to do is replace some characters in the request part of the URL (replacing the block is allowed only in the part of the URL path using the @Path annotation).
Here is the pseudo code for my problem.
@GET("/v2/multi?requests=/users/self,/venues/search?client_id={client_id}&client_secret={client_secret}&v={v}&ll={ll}&intent={intent}&limit={limit}") ProfileSearchVenuesResponse searchVenuesAndProfiles(@ReplaceBy("client_id") String clientId, @ReplaceBy("client_secret") String clientSecret, @ReplaceBy("v") int version, @ReplaceBy("ll") String location, @ReplaceBy("intent") String intent, @ReplaceBy("limit") int limit);
source share