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<EditorJson> getEditors(
            @Path("aid") Integer aid
    );
    //-----------------------------------------------------------------
    //Editorに追加
    @FormUrlEncoded
    @PUT("gallery/{aid}/Editors")
    Call addEditors(
            @Path("aid") Integer aid,
            @Field("uid") Integer uid,
            @Field("token") String token
    );
    //-----------------------------------------------------------------
}
