Skip to content

Instantly share code, notes, and snippets.

@wellingtoncosta
Created February 12, 2019 15:26
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 wellingtoncosta/f23825696df55c0cc8f524f678cd862c to your computer and use it in GitHub Desktop.
Save wellingtoncosta/f23825696df55c0cc8f524f678cd862c to your computer and use it in GitHub Desktop.
interface GithubApi {
@GET("users")
fun getAll(): Deferred<List<UserResponse>>
@GET("users/{username}")
fun getByUsername(@Path("username") username: String): Deferred<UserResponse>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment