I have created patch request using Retrofit2.
@PATCH("/tests/{id}")
Call<Test> updateTest(@Path("id") int id, @Body Test test);
This request working using Postman. It returns updated JSON of Test class. But it is not working using Retrofit.
Any help ?
Add "/" at the end of URL.
@PATCH("/tests/{id}/")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With