/{aid}/pageMap/{pid}/layers/{layerNo} 「GET」追加
1 parent 2b969cf commit 3336faa7d01fdcd8cb1a4fead3636083ebcb6bf8
akagigenki authored on 2 Jul 2021
Showing 1 changed file
View
16
src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java
pages.get(pid).getLayers().add(layer);
}
 
return pages.get(pid).getLayers().size();
}
 
 
// _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
// 1ページの1レイヤーに置けるstrokeの数を返します。
// 成功時のレスポンス:
// @PathParam Integer aid 作品ID
// @PathParam Integer pid ページのID 今回は0
// @PathParam Integer layerNo レイヤーの番号 今回は0
@Path("/{aid}/pageMap/{pid}/layers/{layerNo}")
@GET
@Produces(MediaType.APPLICATION_JSON)
public Integer getLayerRest(@PathParam("aid") Integer aid, @PathParam("pid") Integer pid, @PathParam("layerNo") Integer layerNo) {
var animation = gallery.getAnimationInformation(aid);
 
return pages.get(pid).getLayers().get(layerNo).getStrokes().size();
}
 
 
// _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/