diff --git a/app/src/main/java/com/example/citrusclient/rest/TodosRest.java b/app/src/main/java/com/example/citrusclient/rest/TodosRest.java index 3b38e87..ec2b842 100644 --- a/app/src/main/java/com/example/citrusclient/rest/TodosRest.java +++ b/app/src/main/java/com/example/citrusclient/rest/TodosRest.java @@ -80,6 +80,23 @@ @Field("token") String token ); + @FormUrlEncoded + @PUT("accounts/{account_id}/books/{book_id}/todos/{year}/{month}/{day}/{todo_id}") + Call setTodo( + @Path("account_id") String accountId, + @Path("book_id") Integer bookId, + @Path("year") Integer year, + @Path("month") Integer month, + @Path("day") Integer day, + @Path("todo_id") Integer todoId, + @Field("title") String title, + @Field("new_book_id") Integer newBookId, + @Field("new_year") Integer newYear, + @Field("new_month") Integer newMonth, + @Field("new_day") Integer newDay, + @Field("token") String token + ); + @DELETE("accounts/{account_id}/books/{book_id}/todos/{year}/{month}/{day}/{todo_id}") Call deleteTodoById( @Path("account_id") String accountId,