diff --git a/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/EditorsRest.java b/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/EditorsRest.java index 39d721a..f787480 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/EditorsRest.java +++ b/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/EditorsRest.java @@ -1,4 +1,30 @@ package org.ntlab.acanthus_client.resources.gallery; +import org.ntlab.acanthus_client.entities.EditorJson; +import retrofit2.Call; +import retrofit2.http.Field; +import retrofit2.http.FormUrlEncoded; +import retrofit2.http.GET; +import retrofit2.http.PUT; +import retrofit2.http.Path; +import retrofit2.http.Query; + public interface EditorsRest { + //----------------------------------------------------------------- + //galleryのinvitesにいるか確認 + @GET("gallery/{aid}/Editors") + Call getEditors( + @Path("aid") Integer aid, + @Query("uid") Integer uid + ); + //----------------------------------------------------------------- + //Editorに追加 + @FormUrlEncoded + @PUT("gallery/{aid}/Editors") + Call addEditors( + @Path("aid") Integer aid, + @Field("uid") Integer uid, + @Field("token") String token + ); + //----------------------------------------------------------------- }