| | package org.ntlab.acanthus_server.resources.gallery; |
---|
| | |
---|
| | import org.ntlab.acanthus_server.entities.*; |
---|
| | import org.ntlab.acanthus_server.models.Gallery; |
---|
| | import org.ntlab.acanthus_server.entities.Animation; |
---|
| | import org.ntlab.acanthus_server.entities.Account; |
---|
| | 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 { |
---|
| | private Gallery gallery = Gallery.getInstance(); |
---|
| | private final Gallery gallery = Gallery.getInstance(); |
---|
| | |
---|
| | // _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ |
---|
| | // 1ページの1レイヤーに置ける筆跡情報を全て取得します |
---|
| | // 成功時のレスポンス:strokeNo{pen, color, thickness, potions{x, y}} |
---|
| |
---|
| | // @PathParam Integer pid ページのID |
---|
| | // @PathParam Integer layerNo レイヤーの番号 |
---|
| | // @FormParam Integer uid ページのID |
---|
| | // @FormParam Integer uidToken トークン |
---|
| | // @Formparam Integer pen ペン情報 |
---|
| | // @Formparam Integer color 色情報 |
---|
| | // @Formparam Integer thick 太さ情報 |
---|
| | // @FormParam Integer pen ペン情報 |
---|
| | // @FormParam Integer color 色情報 |
---|
| | // @FormParam Integer thick 太さ情報 |
---|
| | @Path("/{aid}/pageMap/{pid}/layers/{layerNo}/strokes") |
---|
| | @POST |
---|
| | @Produces(MediaType.APPLICATION_JSON) |
---|
| | public Integer addStrokes(@PathParam("aid") Integer aid, @PathParam("pid") Integer pid, @PathParam("layerNo") Integer layerNo, |
---|
| |
---|
| | |