package com.hrenic.popularmovies.network;

import com.hrenic.popularmovies.data.Movie;
import com.hrenic.popularmovies.data.Results;
import com.hrenic.popularmovies.data.Video;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * API for movie DB
 */
public interface TheMovieDBAPI {

    String ENDPOINT = "https://api.themoviedb.org/3/movie/";

    @GET("popular")
    Call<Results<Movie>> getMostPopular();

    @GET("top_rated")
    Call<Results<Movie>> getTopRated();

    @GET("{id}/videos")
    Call<Results<Video>> getVideos(@Path("id") int movieID);

    @GET("{id}/reviews")
    Call<Results<Video>> getReviews(@Path("id") int movieID);

}

@@ -126,16 +126,61 @@
 esults;%0A
+import com.hrenic.popularmovies.data.Review;%0A
 import c
@@ -670,29 +670,30 @@
 all%3CResults%3C
-Video
+Review
 %3E%3E getReview

fix api