Skip to content

Instantly share code, notes, and snippets.

@andersonleite
Created June 8, 2015 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andersonleite/0a3301249bee1fca19ec to your computer and use it in GitHub Desktop.
Save andersonleite/0a3301249bee1fca19ec to your computer and use it in GitHub Desktop.
// Retrofit Interface
@GET("/group/{id}/users")
List<User> groupList(@Path("id") int groupId);
// Chamada ao Endpoint com retorno em JSON
RestAdapter restAdapter = new RestAdapter.Builder()
.setEndpoint("https://api.github.com")
.setRequestInterceptor(requestInterceptor)
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment