Skip to content

Instantly share code, notes, and snippets.

@shelajev
Created January 15, 2016 16:17
Show Gist options
  • Select an option

  • Save shelajev/7ea16d26dc6149e85e65 to your computer and use it in GitHub Desktop.

Select an option

Save shelajev/7ea16d26dc6149e85e65 to your computer and use it in GitHub Desktop.
retrofit2-GitHubService.java
interface GitHubService {
@GET("repos/{owner}/{repo}/contributors")
Call<List<Contributor>> repoContributors(
@Path("owner") String owner,
@Path("repo") String repo);
public static final Retrofit retrofit = new Retrofit.Builder()
.baseUrl("https://api.github.com/")
.addConverterFactory(GsonConverterFactory.create())
.build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment