Skip to content

Instantly share code, notes, and snippets.

@LukaKordic
Created August 13, 2019 11:33
Show Gist options
  • Save LukaKordic/ae39016ecdd30bf6d8aaf35e7fc68dab to your computer and use it in GitHub Desktop.
Save LukaKordic/ae39016ecdd30bf6d8aaf35e7fc68dab to your computer and use it in GitHub Desktop.
interface WeatherApi {
@GET("weather")
suspend fun getWeatherForLocation(@Query("q") location: String, @Query("appid") apiKey: String = API_KEY): Response<WeatherInfoResponse>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment