I am using Retrofit like this to get all the books and delete all the books.
@GET(\"/books\") BookListResponse getAllBooks(); @DELETE(\"/clean\")
Update In Retrofit 2.1 the request builder has changed so you have to specify header in the retrofit interface methods @Headers("Accept: application/json") @GET("products") Call getAllProducts();
@Headers("Accept: application/json") @GET("products") Call getAllProducts();