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 2e7cf82..88c6ad8 100644 --- a/app/src/main/java/com/example/citrusclient/rest/TodosRest.java +++ b/app/src/main/java/com/example/citrusclient/rest/TodosRest.java @@ -22,14 +22,14 @@ @GET("/accounts/{account_id}/books/{book_id}/todos") Call> getAllTodos( @Path("account_id") String accountId, - @Path("book_id") String bookId, + @Path("book_id") Integer bookId, @Query("token") String token ); @GET("/accounts/{account_id}/books/{book_id}/todos/{year}/{month}") Call> getTodosByMonth( @Path("account_id") String accountId, - @Path("book_id") String bookId, + @Path("book_id") Integer bookId, @Path("year") Integer year, @Path("month") Integer month, @Query("token") String token @@ -38,7 +38,7 @@ @GET("/accounts/{account_id}/books/{book_id}/todos/{year}/{month}/{day}") Call> getTodosByDay( @Path("account_id") String accountId, - @Path("book_id") String bookId, + @Path("book_id") Integer bookId, @Path("year") Integer year, @Path("month") Integer month, @Path("day") Integer day, @@ -48,7 +48,7 @@ @GET("/accounts/{account_id}/books/{book_id}/todos/{year}/{month}/{day}/{todo_id}") Call getTodoById( @Path("account_id") String accountId, - @Path("book_id") String bookId, + @Path("book_id") Integer bookId, @Path("year") Integer year, @Path("month") Integer month, @Path("day") Integer day, @@ -60,7 +60,7 @@ @POST("/accounts/{account_id}/books/{book_id}/todos/{year}/{month}/{day}") Call createTodo( @Path("account_id") String accountId, - @Path("book_id") String bookId, + @Path("book_id") Integer bookId, @Path("year") Integer year, @Path("month") Integer month, @Path("day") Integer day, @@ -71,7 +71,7 @@ @PUT("/accounts/{account_id}/books/{book_id}/todos/{year}/{month}/{day}/{todo_id}/check") Call setCheck( @Path("account_id") String accountId, - @Path("book_id") String bookId, + @Path("book_id") Integer bookId, @Path("year") Integer year, @Path("month") Integer month, @Path("day") Integer day, @@ -83,7 +83,7 @@ @DELETE("/accounts/{account_id}/books/{book_id}/todos/{year}/{month}/{day}/{todo_id}") Call deleteTodoById( @Path("account_id") String accountId, - @Path("book_id") String bookId, + @Path("book_id") Integer bookId, @Path("year") Integer year, @Path("month") Integer month, @Path("day") Integer day,