public interface MovieRestInterface
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<MovieJSON> |
getMovieInfo(java.lang.String movieId,
java.lang.String apiKey)
Get data for a specific movie
|
retrofit2.Call<MovieSearchJSON> |
searchMovies(java.lang.String query,
java.lang.String apiKey)
Searches movies
|
@GET(value="search/movie/?") retrofit2.Call<MovieSearchJSON> searchMovies(@Query(value="query") java.lang.String query, @Query(value="api_key") java.lang.String apiKey)
query
- the title to searchapiKey
- the service API key@GET(value="movie/{movieId}?append_to_response=credits") retrofit2.Call<MovieJSON> getMovieInfo(@Path(value="movieId") java.lang.String movieId, @Query(value="api_key") java.lang.String apiKey)
movieId
- the ID of the movieapiKey
- the service API key