diff --git a/src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java b/src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java index ea29a60..6ab1dfb 100644 --- a/src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java +++ b/src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.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 StrokesRest { + @Path("/{aid}/pageMap/0/layers/0/strokes") + @POST + @Produces(MediaType.APPLICATION_JSON) + public String addStrokes(@PathParam("aid") String aid, @FormParam("token") String client_token) { + + } + + @Path("/{aid}/pageMap/0/layers/0/strokes/{strokeNo}/position") @GET - public String getStrokesRest() { + @Produces(MediaType.APPLICATION_JSON) + public String getPositions() { return "Hello World!!!"; } + + @Path("/{aid}/pageMap/0/layers/0/strokes/{strokeNo}/position") + @POST + @Produces(MediaType.APPLICATION_JSON) + public String addPositions(@PathParam("aid") String aid, @FormParam("token") String client_token) { + + } }