Back to project page Android-RxJava.
The source code is released under:
Apache License
If you think the Android project Android-RxJava listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.morihacky.android.rxjava.retrofit; //w w w . j a v a 2s .c o m import java.util.List; import retrofit.http.GET; import retrofit.http.Path; import rx.Observable; public interface GithubApi { /** * See https://developer.github.com/v3/repos/#list-contributors */ @GET("/repos/{owner}/{repo}/contributors") Observable<List<Contributor>> contributors(@Path("owner") String owner, @Path("repo") String repo); /** * See https://developer.github.com/v3/users/ */ @GET("/users/{user}") Observable<User> user(@Path("user") String user); }