t = {movieName} & apikey = 11111 "must not have replace block. dynamic query parameters use @Query.
This error happens when trying to search for a movie by name, I have the following codes, but the error remains:
Retrofit retrofit = new Retrofit.Builder()
.baseUrl("http://www.omdbapi.com/")
.addConverterFactory(GsonConverterFactory.create())
.build();
@GET("?t={movieName}&apikey=11111")
Call<List<MovieResults>> getFilmesByName(@Query("movieName") String movieName);
How to make the movie name dynamic, ie search through what is written within an edittext?