I have several URL that accepts the same GET parameters (mainly for pagination purposes) as follow :
public interface AsynchronousApi {
@GET("/api/users")
public void listUsers(@Query("limit") Integer limit,
@Query("offset") Integer offset,
Callback<userList> callback);
@GET("/api/posts")
public void listPosts(@Query("limit") Integer limit,
@Query("offset") Integer offset,
Callback<postList> callback);
...
}
Since I have lots of URL, this is getting a bit repetitive. So I would like to have way to refactor this so I don't have to repeat @Query("limit") and @Query("offset") everytime. Maybe another annotation would help ?