- package com.example.citrusclient.rest;
- import com.example.citrusclient.models.Book;
- import java.util.ArrayList;
- import retrofit2.Call;
- import retrofit2.http.GET;
- import retrofit2.http.Query;
- public interface PublicBooksRest {
- @GET("public_books")
- Call<ArrayList<Book>> getAllPublicBooks();
- @GET("public_books/search")
- Call<ArrayList<Book>> searchBooksByTitleAndAccount(
- @Query("search_title") String search_title,
- @Query("search_account_id") String search_id,
- @Query("sort_by") int sort
- );
- }