Skip to content

Instantly share code, notes, and snippets.

@JacquesSmuts
Last active April 27, 2019 08:33
Show Gist options
  • Save JacquesSmuts/8374926ea79785b96aec53714d1dd44e to your computer and use it in GitHub Desktop.
Save JacquesSmuts/8374926ea79785b96aec53714d1dd44e to your computer and use it in GitHub Desktop.
interface RetroService
interface GitHubService: RetroService {
@GET("users/{user}/repos")
fun listGitHubRepos(@Path("user") user: String): List<GitHubRepo>
}
interface AwsCodeCommitService: RetroService {
@GET("ListRepositories")
fun listAwsRepos(): List<AwsRepo>
}
interface BitBucketService: RetroService {
@GET("2.0/repositories")
suspend fun listBitBucketRepos(): List<BitBucketRepo>
}
//Many more services
interface GitLabService: RetroService
interface MercurialService: RetroService
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment