Skip to content

Instantly share code, notes, and snippets.

@dmarrazzo
Created July 7, 2016 12:27
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 dmarrazzo/436f64b7d6246bf1433b1864d8cd8e66 to your computer and use it in GitHub Desktop.
Save dmarrazzo/436f64b7d6246bf1433b1864d8cd8e66 to your computer and use it in GitHub Desktop.
JAX-RS client get collections
Client client = ClientBuilder.newClient();
Response res = client.target("http://localhost:8888/Rest/ok").request().get();
Simple[] entity = res.readEntity(Simple[].class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment