Interface | Description |
---|---|
BaseUrl |
The base URL of the remote service.
|
Call<T> |
An invocation of a Retrofit method that sends a request to a webserver and returns a response.
|
CallAdapter<T> |
Adapts a
Call into the type of T . |
CallAdapter.Factory | |
Callback<T> |
Communicates responses from a server or offline requests.
|
Converter<F,T> |
Convert objects to and from their representation as HTTP bodies.
|
Class | Description |
---|---|
Converter.Factory | |
Response<T> |
TODO
|
Retrofit |
Adapts a Java interface to a REST API.
|
Retrofit.Builder |
Build a new
Retrofit . |
public interface GitHubService { @GET("/users/{user}/repos") List<Repo> listRepos(@Path("user") String user); }
Copyright © 2015 Square, Inc.. All Rights Reserved.