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..1137284 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,38 @@ 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.GET; +import retrofit2.http.POST; +import retrofit2.http.Path; +import retrofit2.http.Query; + public interface GalleryRest { + + //すべての作品情報を返す。 + @GET("gallery") + Call> getGallery(); + + //作品の更新 + @POST("gallery") + Call createAnimation( + @Field("name")String animationName, + @Field("token")String token, + @Field("uid")String uid + ); + + //特定の作品の表示 + @GET("gallery/{aid}") + Call> getAnimationInformation( + @Path("aid") Integer aid + ); + + Call> getAnimationByAnimationName( + @Query("name") String name + ); + }