retrofit2

Retrofit 2: @Query “encoded=false” don't work

不羁的心 提交于 2020-08-24 05:30:42
问题 0) I am using Retrofit 2 for work with Bank API. 1) I have some interface: public interface ApiService { @GET("statdirectory/exchange") Call<List<MyModel>> getСurrency(@Query("date") String inputDate); } 2) And when i call method getСurrency(someParametr) , where someParametr is string, consist with "date&json" (for example, "20170917&json"): ApiService apiService = RetrofitController.getApi(); apiService.getCurrency("20170917&json").enqueue(new Callback<List<MyModel>>() { @Override public

Error Response 500 is not getting diaplayed when password and confirm password typed wrong

半城伤御伤魂 提交于 2020-08-17 12:19:05
问题 my response getting successfully displayed when password and confirm password typed right....but when it mismatched it is not going to else part....not showing toast anything......please guide me ...need help...thanks in advance here is my response when password and confirm password typed wrong in postman:- { "status": 500, "message": "Could not reset password.", "error": { "confirm_password": { "compareWith": "Passwords mismatch." } }, "user_msg": "Could not reset password, please try again.