Skip to content

Instantly share code, notes, and snippets.

@enginebai
Created August 3, 2020 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enginebai/b1a36d0e147de7da4208c1451925d92a to your computer and use it in GitHub Desktop.
Save enginebai/b1a36d0e147de7da4208c1451925d92a to your computer and use it in GitHub Desktop.
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