Created
September 30, 2016 04:18
-
-
Save wingyplus/f2900b1b9f45ebc7709f5fb10859fac3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.wingyplus.retrofittut; | |
import retrofit2.Call; | |
import retrofit2.http.GET; | |
import retrofit2.http.Headers; | |
import retrofit2.http.Path; | |
public interface UserService { | |
@Headers({ | |
"Accept: application/vnd.github.v3.full+json", | |
"User-Agent: Retrofit-Sample-App" | |
}) | |
@GET("users/{username}") | |
Call<User> getSingleUser(@Path("username") String username); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment