My JSON objects are in the API that ends with ?category=lunch&page=0&count=10 . By @Query I calculate the category parameter, but I don’t understand how to connect the page and count parameters to it. I even tried to add a String &page=0&count=10 to the category parameter behind it, but it gives an exception (it doesn’t understand the symbols "&" and "=". Please suggest a solution to the problem.

    1 answer 1

    If I understand you correctly, then so:

     @GET("/someUrl") Call<SomeClass> getTasks(@Query("category") String category, @Query("page") String page, @Query("count") String count); 
    • I have to get objects with / someUrl? Category = lunch & page = 0 & count = 10 where I have to set / change values ​​for "category", "count" and "page", and depending on their values, the returned objects change - user239883
    • @ user239883 difficult to understand what you need, updated the answer - katso