Retrofit query parameters adding apiKey
I'm using Kotlin to develop a news source app.
public interface NewsAPI {
@GET("v2/top-headlines")
fun getTooNews(
@Query("my_apiKey") String "apiKey");
)
}
Is this the correct way to add the apiKey via query parameters?
https://square.github.io/retrofit/