package com.example.myapplicationnews.api;

import com.example.myapplicationnews.api.model.NewsResponse;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface NewsApi {
    @GET("top-headlines")
    Call<NewsResponse> getNewsList(@Query("country") String newsSource,
                                   @Query("apiKey") String apiKey);
}
