Back to project page RetrofitSample.
The source code is released under:
Apache License
If you think the Android project RetrofitSample 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.gorcyn.sample.retrofit.service; /* w ww . j a v a 2 s . c o m*/ import com.gorcyn.sample.retrofit.model.Repos; import com.gorcyn.sample.retrofit.model.User; import java.util.List; import retrofit.Callback; import retrofit.http.GET; import retrofit.http.Path; public interface GithubService { @GET("/users/{user}") void getUser(@Path("user") String user, Callback<User> callback); @GET("/users/{user}/repos") void getUserRepos(@Path("user") String user, Callback<List<Repos>> callback); }