-1
I am trying to use the Retrofit library to make HTTP requests for the API: API Star War, with the Kotlin language, however I don’t know how to correctly pass a search parameter to an API function.
Interface code:
@GET("people/?search=")
fun getPersonagem(nome: String):Call<PersonagemList>
I’ve tried that way too:
@GET("people/?search={nome}")
fun getPersonagem(@Path ("nome") nome: String):Call<PersonagemList>