Skip to content

Instantly share code, notes, and snippets.

@David-Hackro
Created August 3, 2018 15:15
Show Gist options
  • Save David-Hackro/f518dd4675013afd382294085b28f0a8 to your computer and use it in GitHub Desktop.
Save David-Hackro/f518dd4675013afd382294085b28f0a8 to your computer and use it in GitHub Desktop.
public interface api{
@GET("{movie}/{list}")
Observable<GenerosResponse> getAllGeneros(
@Path("movie")String movie,
@Path("list")String list,
@Query("api_key")String key);
@GET("{number}/{movies}")
Observable<ResponseMovies> getAllMovies(
@Path("number")int number,
@Path("movies")String movies,
@Query("api_key")String key,
@Query("sort_by")String sort_by);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment