In general, I found such an example on the net: retrofit

When connecting, the following difficulties arose: enter image description here

error 2:

enter image description here

tell me what am I doing wrong?

interface:

public interface GithubAPI { @GET("/users/{username}") Call<GithubUser> getUser(@Path("username") String username); @GET("/users/{username}") Call<GithubUser> getId(@Path("id") int id); 

}

  • You have at least no GitResult class. Well, the annotation Generated can be removed. - temq
  • @ temq 3 is not a very good example ... but decided to try it and what then does the service client not pick up? - upward

0