package com.horrortv.app.data.remote.omdb

import com.horrortv.app.data.remote.omdb.dto.OmdbMovieDetailDto
import com.horrortv.app.data.remote.omdb.dto.OmdbSearchResponse
import com.horrortv.app.util.Constants
import retrofit2.http.GET
import retrofit2.http.Query

interface OmdbApiService {
    @GET("/")
    suspend fun searchByCategory(
        @Query("s") query: String,
        @Query("type") type: String = "movie",
        @Query("page") page: Int = 1,
        @Query("apikey") apiKey: String = Constants.OMDB_API_KEY
    ): OmdbSearchResponse
    
    @GET("/")
    suspend fun getMovieDetail(
        @Query("i") imdbId: String,
        @Query("plot") plot: String = "full",
        @Query("apikey") apiKey: String = Constants.OMDB_API_KEY
    ): OmdbMovieDetailDto
    
    @GET("/")
    suspend fun searchMovies(
        @Query("s") query: String,
        @Query("type") type: String = "movie",
        @Query("page") page: Int = 1,
        @Query("apikey") apiKey: String = Constants.OMDB_API_KEY
    ): OmdbSearchResponse
}