package com.app.simplitend.articles;

import androidx.annotation.NonNull;

import com.app.simplitend.welcome.welcomepatient.mvvm.models.CallResponse;

import java.util.ArrayList;
import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Multipart;
import retrofit2.http.PartMap;
import retrofit2.http.Query;

public interface ArticleApiService {

    @GET("api/get-search-of-news-articles")
    Call<CallResponse<ArrayList<ArticleResult>>> getArticles(@Header("Authorization") String token,
                                                             @Header("title") String search_query,
                                                             @Query("per_page") int per_page,
                                                             @Query("page") int page);

    @GET("api/get-list-of-news-articles")
    Call<CallResponse<ArticleResult>> getDefaultArticle(@Header("Authorization") String token,
                                                             @Header("default") int default_article);

}
