diff --git a/app/src/main/java/com/example/citrusclient/rest/FavoritesRest.java b/app/src/main/java/com/example/citrusclient/rest/FavoritesRest.java index 225e35e..0e3dd95 100644 --- a/app/src/main/java/com/example/citrusclient/rest/FavoritesRest.java +++ b/app/src/main/java/com/example/citrusclient/rest/FavoritesRest.java @@ -13,7 +13,7 @@ import retrofit2.http.Query; public interface FavoritesRest { - //主がいいねした本の一覧 + //主{account_id}がいいねした本の一覧 @FormUrlEncoded @GET("accounts/{account_id}/favorites") Call>> getFavoritesBooks( @@ -21,6 +21,7 @@ @Query("token") String token ); + //主{account_id}がいいねした誰か{other_account_id}の本の一覧 @FormUrlEncoded @GET("accounts/{account_id}/favorites/{other_account_id}") Call> getFavoritesBooksById( @@ -29,6 +30,7 @@ @Query("token") String token ); + //主{account_id}のある本{book_id}をいいねした人の一覧 @FormUrlEncoded @GET("accounts/{account_id}/books/{book_id}/favorited") Call> getFavoritedAccount( @@ -37,6 +39,7 @@ @Query("token") String token ); + //主{account_id}のある本{book_id}を他の人{other_account_id}がいいねする @FormUrlEncoded @PUT("accounts/{account_id}/books/{book_id}/favorited/{other_account_id}") Call putFavorite( @@ -46,6 +49,7 @@ @Field("token") String token ); + //主{account_id}のある本{book_id}を他の人{other_account_id}がいいねを解除する @FormUrlEncoded @DELETE("accounts/{account_id}/books/{book_id}/favorited/{other_account_id}") Call removeFavorite(