squiggly-java/examples/dropwizard at master · jarpz/squiggly-java · GitHub
Skip to content

Latest commit

 

History

History
 
 

Folders and files

Squiggly Filter Jackson Dropwizard Example

This example shows how to use Squiggly Filter in a Dropwizard environment.

This example uses the Issue object described in the main documentation.

NOTE: Unlike the other examples and the main project, this example requires Java 8.

To run the example, cd to the examples/dropwizard directory on the command line type the following:

mvn compile exec:java

In another terminal, you can request the issue json by doing the following:

  1. To print the raw json
curl -s -g 'http://localhost:8080/issues'
  1. To filter the raw json
curl -s -g 'http://localhost:8080/issues?fields=id,assignee[firstName]'