I use Retrofit to get all books and delete all books.
@GET("/books")
BookListResponse getAllBooks();
@DELETE("/clean")
Response deleteAllBooks();
But error status 500 was returned (internal server error). I tested these two quiet calls with the Chrome restful client application 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 may work correctly.
So, I'm not sure if there is a problem with the server, or am I missing something?
Thank you very much.
source
share