Find out how to use Retrofit with idiomatic Kotlin code that you can apply directly to your Android app.
Overview
Syllabus
Introduction
- Leveraging APIs in your Android app with Retrofit
- What you should know
- REST APIs and how Android apps use them
- HTTP methods and how Retrofit uses them in your Android app
- HTTP methods for reading data with an API
- HTTP methods for writing data with an API
- Using and translating API data in your Android app
- Why we need concurrency with networking
- What are coroutines and how do they help with networking?
- Using coroutines in your Android app
- Understand the starter code for the Android Retrofit project
- Include the Retrofit library in an Android app
- Define Kotlin data models for API objects
- Implement a Retrofit API interface
- Retrieve data with Retrofit in an Android app
- Chain API calls with Retrofit
- Handle failed requests within the coroutine
- Use query parameters with Retrofit
- Making requests without coroutines
- Make a PUT request
- Make a PATCH request
- Make a POST and DELETE request
- Handling authentication in APIs
- Change the names of properties
- Customize the data converter
- Form URL encoding
- Use ProGuard with Retrofit
- Next steps with Retrofit on Android
Taught by
Rahul Pandey