Skip to content

Instantly share code, notes, and snippets.

@shakalaca
Created August 6, 2020 15:11
Show Gist options
  • Save shakalaca/f30a5f3a471a1938151887cc305b454c to your computer and use it in GitHub Desktop.
Save shakalaca/f30a5f3a471a1938151887cc305b454c to your computer and use it in GitHub Desktop.
interface GithubService {
/**
* Get repos ordered by stars.
*/
@GET("search/repositories?sort=stars")
suspend fun searchRepos(
@Query("q") query: String,
@Query("page") page: Int,
@Query("per_page") itemsPerPage: Int
): RepoSearchResponse
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment