MovieHunt blog part2. api service
interface MovieApiService { | |
@GET("movie/{list}") | |
fun fetchMovieList( | |
@Path("list") list: String, | |
@Query("page") page: Int? = null | |
): Single<TmdbApiResponse<MovieListResponse>> | |
@GET("movie/{movieId}") | |
fun fetchMovieDetail(@Path("movieId") movieId: String): Single<MovieDetailResponse> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment