diff --git a/src/main/java/org/ntlab/acanthus_server/resources/gallery/LayersRest.java b/src/main/java/org/ntlab/acanthus_server/resources/gallery/LayersRest.java index d027190..2b6f6da 100644 --- a/src/main/java/org/ntlab/acanthus_server/resources/gallery/LayersRest.java +++ b/src/main/java/org/ntlab/acanthus_server/resources/gallery/LayersRest.java @@ -2,14 +2,30 @@ import org.springframework.stereotype.Component; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import javax.ws.rs.*; +import javax.ws.rs.core.MediaType; @Component -@Path("gallery") +@Path("/gallery") public class LayersRest { + + /** + *指定したレイヤー情報(順番、枚数)を獲得するメソッド。 + * @param layerNo レイヤー番号 + * @param aid 作品id + * @param pid ページID + * @return strokeNo{pen, color, thickness, positions{x, y}} + */ + @Path("/{aid}/pageMap/0/layers/0") @GET - public String getLayersRest() { - return "Hello World!!!"; + @Produces(MediaType.APPLICATION_JSON) + public void getLayersRest(@PathParam("aid") Integer aid, @FormParam("layerNo") Integer layerNo, @FormParam("pid") Integer pid) { + + /* if() { + + } + */ + throw new WebApplicationException(404); } + }