Skip to content

Instantly share code, notes, and snippets.

@joshafeinberg
Last active February 29, 2020 22:50
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 joshafeinberg/231db4908825570cf973a5b3bc6ba136 to your computer and use it in GitHub Desktop.
Save joshafeinberg/231db4908825570cf973a5b3bc6ba136 to your computer and use it in GitHub Desktop.
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