Newer
Older
CitrusClient / app / src / main / java / com / example / citrusclient / rest / PublicBooksRest.java
package com.example.citrusclient.rest;

import com.example.citrusclient.models.Book;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface PublicBooksRest {
    @GET("public_books")
    Call<Book> getAllPublicBooks(

    );

    @GET("public_books/search")
    Call<Book> searchBooksByTitleAndAccount(
            @Query("search_title") String search_title,
            @Query("search_account_id") String search_id,
            @Query("sort_by") int sort
    );
}