iammert / AndroidArchitecture

Recommended architecture by Android
888 stars 192 forks source link

[QUESTION] Debugging Api response #9

Open fgagneten opened 6 years ago

fgagneten commented 6 years ago

Thanks for this repo, but I'm migrating from asynctask to this project and sincerely, is like start from 0.

My question is: How can I debug the Api response?

In my last project I can stop in the moment when the Api response, so I could see the header of the response if it was a 200 response or 404. Then I could see the json of the Api response, etc...

Using this repo I can't see anything of this, for example, I changed the url repo and also I changed the model, and I don't know if the data received is ok and if the model is filled with the response.

Anybody can help me solving my problem?

Thanks!

RJ-Clegg commented 6 years ago

In this example, you would look at LiveDataCallAdapter and then ApiResponse classes.