I am using Retrofit like this to get all the books and delete all the books.
@GET("/books")
BookListResponse getAllBooks();
@DELETE("/clean")
Response deleteAllBooks();
But an error status 500 (internal server error) was returned. I tested these two restful calls using Chrome restful client app and they work properly.
However, if I just want to get one book or delete one book like this
@GET("books/1")
BookResponse getOneBook();
@DELETE("books/1")
Response deleteOneBook();
They can work properly.
So I am not sure if that's the server issue or I have missed something?