pass parameters on a request in the retrofit

Asked

Viewed 437 times

0

1 answer

0


It is one of the first examples of documentation:

@GET("group/{id}/users")
Call<List<User>> groupList(@Path("id") int groupId);

In your case:

@GET("posts/{page}")
Call<ModelJson[]> ouvirMensagens(@Path("page") int page);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.