Skip to content

Instantly share code, notes, and snippets.

@ibrahimsn98
Last active August 19, 2018 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibrahimsn98/f0e3556897adf8861316a0f11e019b65 to your computer and use it in GitHub Desktop.
Save ibrahimsn98/f0e3556897adf8861316a0f11e019b65 to your computer and use it in GitHub Desktop.
android-mvvm-with-dagger-2
public interface RepoService {
@GET("orgs/Google/repos")
Single<List<Repo>> getRepositories();
@GET("repos/{owner}/{name}")
Single<Repo> getRepo(@Path("owner") String owner, @Path("name") String name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment