In Retrofit 2, service methods representing http methods must return Call
.
Call
is a generic which must take the type representing the return object of the http method.
For example,
@GET("/members/{id}")
Call<Member> getMember(@Path("id") Long id);
For http methods such as delete, no content is returned. In cases like this, what parameter should be provided to Call
?