Retrofit 2 void return
If you are using Kotlin/Retrofit/Rxjava/RxKotlin
@Headers(JwtKeyTokenWithValue)
@DELETE("/members/{id}")
fun removeMember(@Path("id") Long id): Completable
And can be subscribed this way
apiManager
.removeMember()
.subscribe(
{ Timber.i { "Member Removed!" } },
{ t -> Timber.e(t)})
Just set Void as the Type.
@DELETE("/members/{id}")
Call<Void> removeMember(@Path("id") Long id);