diff --git a/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/GalleryRest.java b/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/GalleryRest.java index 50610d5..7128cde 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/GalleryRest.java +++ b/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/GalleryRest.java @@ -1,4 +1,43 @@ package org.ntlab.acanthus_client.resources.gallery; +import org.ntlab.acanthus_client.entities.AnimationJson; + +import java.util.Collection; + +import retrofit2.Call; +import retrofit2.http.Field; +import retrofit2.http.FormUrlEncoded; +import retrofit2.http.GET; +import retrofit2.http.POST; +import retrofit2.http.Path; +import retrofit2.http.Query; + public interface GalleryRest { + + //すべての作品情報を返す。 + @GET("gallery") + Call> getGallery(); + + @GET("gallery") + Call> getAnimationByAnimationName( + @Query("name") String name + ); + + //作品の更新 + @FormUrlEncoded + @POST("gallery") + Call createAnimation( + @Field("name") String animationName, + @Field("token") String token, + @Field("uid") Integer uid + ); + + //特定の作品の表示 + @GET("gallery/{aid}") + Call> getAnimationInformation( + @Path("aid") Integer aid + ); + + + }