| | package org.ntlab.acanthus_server.resources.gallery; |
---|
| | |
---|
| | import org.springframework.stereotype.Component; |
---|
| | 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") |
---|
| | public class StrokesRest { |
---|
| |
---|
| | * @param pid ページID |
---|
| | * @param layerNo レイヤー番号 |
---|
| | * @return strokeNo{pen, color, thickness, positions{x, y}} |
---|
| | */ |
---|
| | |
---|
| | @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) { |
---|
| | |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | |
---|
| | |
チェケラ
StrokesRest.java に、GETとPOSTを追加
84da506
intomaster
frommatsu
on 15 May 2021StrokesRest.java に、GETとPOSTを追加を確認
84da506
intomaster
frommatsu
on 15 May 2021