| |
---|
| | import org.springframework.stereotype.Component; |
---|
| | |
---|
| | import javax.ws.rs.*; |
---|
| | import javax.ws.rs.core.MediaType; |
---|
| | import java.util.ArrayList; |
---|
| | |
---|
| | @Component |
---|
| | @Path("/gallery") |
---|
| | public class StrokesRest { |
---|
| | |
---|
| | /** |
---|
| | *指定したレイヤー情報(順番、枚数)を獲得メソッド。 |
---|
| | * @param aid 作品id |
---|
| | * @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) { |
---|
| | |
---|
| | return null; |
---|
| | } |
---|
| | |
---|
| | @Path("/{aid}/pageMap/0/layers/0/strokes/{strokeNo}/position") |
---|
| | @GET |
---|
| | @Produces(MediaType.APPLICATION_JSON) |
---|
| | public String getPositions() { |
---|
| | return "Hello World!!!"; |
---|
| | public ArrayList<Float> getPositions(@PathParam("aid") Integer aid, @PathParam("strokeNo") Integer strokeNo) { |
---|
| | return null; |
---|
| | } |
---|
| | |
---|
| | @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) { |
---|
| | |
---|
| | return null; |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | |
---|
| | |
エラー回避
StrokesRest.javaの修正を確認
1541d7d
intomaster
frommatsu
on 15 May 2021