Newer
Older
CitrusClient / app / src / main / java / com / example / citrusclient / rest / PublicBooksRest.java
  1. package com.example.citrusclient.rest;
  2.  
  3. import com.example.citrusclient.models.Book;
  4.  
  5. import java.util.ArrayList;
  6.  
  7. import retrofit2.Call;
  8. import retrofit2.http.GET;
  9. import retrofit2.http.Query;
  10.  
  11. public interface PublicBooksRest {
  12. @GET("public_books")
  13. Call<ArrayList<Book>> getAllPublicBooks();
  14.  
  15. @GET("public_books/search")
  16.  
  17. Call<ArrayList<Book>> searchBooksByTitleAndAccount(
  18. @Query("search_title") String search_title,
  19. @Query("search_account_id") String search_id,
  20. @Query("sort_by") int sort
  21. );
  22. }