diff --git a/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/PagesRest.java b/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/PagesRest.java new file mode 100644 index 0000000..d0e530c --- /dev/null +++ b/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/PagesRest.java @@ -0,0 +1,29 @@ +package org.ntlab.acanthus_client.resources.gallery; + +import org.ntlab.acanthus_client.entities.Page; + +import java.util.ArrayList; + +import retrofit2.Call; +import retrofit2.http.FormUrlEncoded; +import retrofit2.http.GET; +import retrofit2.http.POST; +import retrofit2.http.Part; +import retrofit2.http.Path; + +//----------------------------------------------------------------- +// +public interface PagesRest { + + //----------------------------------------------------------------- + // + @GET("gallery/{aid}/pageMap") + Call> getPages(@Path("aid") Integer aid); + + //----------------------------------------------------------------- + // + @POST("gallery/{aid}/pageMap") + Call addPage(@Path("aid")Integer aid); + + //----------------------------------------------------------------- +}