diff --git a/src/main/java/org/ntlab/citrusserver/resources/ScheduleRest.java b/src/main/java/org/ntlab/citrusserver/resources/ScheduleRest.java index 14f3f42..f1bf33a 100644 --- a/src/main/java/org/ntlab/citrusserver/resources/ScheduleRest.java +++ b/src/main/java/org/ntlab/citrusserver/resources/ScheduleRest.java @@ -126,7 +126,7 @@ // @Consumes(MediaType.APPLICATION_FORM_URLENCODED) // public Schedule setScheduleStartTime(@PathParam("account_id") String accountId, @PathParam("year") Integer year, // @PathParam("month") Integer month, @PathParam("day") Integer day, -// @PathParam("schedule_id") Integer scheduleId, @QueryParam("token") String token) { +// @PathParam("schedule_id") Integer scheduleId, @FormParam("token") String token, @FormParam("start_time") String startTime) { // if(accountManager.checkToken(accountId,token)) { // scheduleManager.setScheduleStartTime(accountId, year, month, day, scheduleId); // return "success"; @@ -142,7 +142,7 @@ // @Consumes(MediaType.APPLICATION_FORM_URLENCODED) // public Schedule setScheduleEndTime(@PathParam("account_id") String accountId, @PathParam("year") Integer year, // @PathParam("month") Integer month, @PathParam("day") Integer day, -// @PathParam("schedule_id") Integer scheduleId, @QueryParam("token") String token) { +// @PathParam("schedule_id") Integer scheduleId, @FormParam("token") String token, @FormParam("end_time") String endTime) { // if(accountManager.checkToken(accountId,token)) { // scheduleManager.setScheduleEndTime(accountId, year, month, day, scheduleId); // return "success"; @@ -158,7 +158,7 @@ // @Consumes(MediaType.APPLICATION_FORM_URLENCODED) // public Schedule setScheduleTitle(@PathParam("account_id") String accountId, @PathParam("year") Integer year, // @PathParam("month") Integer month, @PathParam("day") Integer day, -// @PathParam("schedule_id") Integer scheduleId, @QueryParam("token") String token) { +// @PathParam("schedule_id") Integer scheduleId, @FormParam("token") String token, @FormParam("title") String title) { // if(accountManager.checkToken(accountId,token)) { // scheduleManager.setScheduleTitle(accountId, year, month, day, scheduleId); // return schedule; @@ -174,7 +174,7 @@ // @Consumes(MediaType.APPLICATION_FORM_URLENCODED) // public Schedule setSchedulesBook(@PathParam("account_id") String accountId, @PathParam("year") Integer year, // @PathParam("month") Integer month, @PathParam("day") Integer day, -// @PathParam("schedule_id") Integer scheduleId, @QueryParam("token") String token) { +// @PathParam("schedule_id") Integer scheduleId, @FormParam("token") String token, @FormParam("book_id") String bookId) { // if(accountManager.checkToken(accountId,token)) { // scheduleManager.setSchedulesBook(accountId, year, month, day, scheduleId);//token後でつける // return "success";