Example of using RestEasy with: - Using JSON with RESTEasy - The Jakarta JSON Binding Provider
mvn wildfly:dev
The data is marshalled to JSON. Use the following curl
command to access the JSON data:
$ curl http://localhost:8080/json-binding/library/books
To see an individual book, use the following curl
command to access the JSON data:
$ curl http://localhost:8080/json-binding/library/books/9780596158040