Last active
April 27, 2019 08:33
-
-
Save JacquesSmuts/8374926ea79785b96aec53714d1dd44e 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
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