Conclusion
In this lesson, you learned how to:
- Make an API request with Retrofit.
- Use
ResponseBodyto read the raw response. - Send data to the server using
RequestBody. - Manually parse a JSON response into Kotlin objects.
- Handle API request errors.
In the next lesson, you’ll learn about Moshi—the JSON parsing library. See you there. :]