Last active
February 29, 2020 22:50
-
-
Save joshafeinberg/231db4908825570cf973a5b3bc6ba136 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 OreoTrackerNetwork : SicknessService, WeightService, StatsService | |
interface SicknessService { | |
@GET("throwup") | |
suspend fun getThrowUps(): List<ThrowUp> | |
@POST("throwup") | |
suspend fun postThrowUp(@Body body: ThrowUp) | |
} | |
interface WeightService { | |
@GET("weight") | |
suspend fun getWeights(): List<Weight> | |
@POST("weight") | |
suspend fun postWeight(@Body body: Weight) | |
} | |
interface StatsService { | |
@GET("stats") | |
suspend fun getStats(): Stats | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment