0
t={movieName}&apikey=11111" must not have replace block. For Dynamic query Parameters use @Query.
This error happens when trying to fetch a movie by name, I have the codes below, 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, that is, searched through what is written inside an edittext?
Path error is the same.
– Henrique
@Henriquemendes usually works that way with me. You tried using Query?!
– viana
It worked now here,with the query this way it passed, I will do some more landmark tests as a response! Thank you!
– Henrique
@Henriquemendes Anything, give a touch! = D
– viana