DEV Community

petersafwat
petersafwat

Posted on

Trying to get post from Omdb webservice by retrofit but error says URL query string must not have replace block

I'm trying to get movie plot, or release year through the OMDb API. When I type a movie name I get this error message:

URL query string must not have replace block

I changed the call method in the interface instead of the path to query:

@GET("?t={id}&apikey=apikey(that's private)")
Call<Post> getPost(@Query("id")

Top comments (0)