Answers for "query string in retrofit android kotlin"

2

android retrofit get @query

interface WeatherService {
    @GET("data/2.5/weather?")
    fun getCurrentWeatherData(@Query("lat") lat: String, @Query("lon") lon: String, @Query("APPID") app_id: String): Call<WeatherResponse>
}
Posted by: Guest on August-02-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language