Retrofit: Love Working with APIs on Android
Pöhls Marcus, Peitek Norman.
Future Studio, 2016.Introduction
Getting Started
What is Retrofit
Prepare Your Android Project
How to Declare an API Interface
JSON Response Mapping
Sustainable Android REST Client
Retrofit in Use
Requests
API Delcaration With Retrofit
Query Parameter and Multiple Parameters with the Same Name
Optional Query Parameters
Path Parameter
Synchronous and Asynchronous Requests
Send Objects in Request Body
Add Custom Request Header
Using Retrofit’s Log Level to Debug Requests
Response Handling
Define a Custom Response Converter
How to Integrate XML Converter
How to Mock API-Responses
Authentication
Basic Authentication
Token Authentication
OAuth on Android With Retrofit
OAuth Refresh-Token Handling
File Upload with Retrofit
How to Upload Files
App Release Preparation
Getting Started
What is Retrofit
Prepare Your Android Project
How to Declare an API Interface
JSON Response Mapping
Sustainable Android REST Client
Retrofit in Use
Requests
API Delcaration With Retrofit
Query Parameter and Multiple Parameters with the Same Name
Optional Query Parameters
Path Parameter
Synchronous and Asynchronous Requests
Send Objects in Request Body
Add Custom Request Header
Using Retrofit’s Log Level to Debug Requests
Response Handling
Define a Custom Response Converter
How to Integrate XML Converter
How to Mock API-Responses
Authentication
Basic Authentication
Token Authentication
OAuth on Android With Retrofit
OAuth Refresh-Token Handling
File Upload with Retrofit
How to Upload Files
App Release Preparation