I need perform a DELETE request using Retrofit. So, my code snippet of the interface looks like this:
@DELETE(\"/api/item/{id}\") void deleteItem(@Path(\"id\") i
In Retrofit 2.0, You can use Call interface for the result of your request as below.
@DELETE("/api/item/{id}") Call deleteItem(@Path("id") int itemId); ... Call call = YourServiceInstance.deleteItem(10); call.enqueue(new Callback() { ... });