Java Reference
In-Depth Information
Expand any node from the left and click on a web service, select
GET(application/
json)
from the dropdown labeled
Choose method to test
, and click on
Test
.
Now, an HTTP GET request being sent to the RESTful web service and returns
a JSON response.
Now, the page displays a JSON-formatted representation of the data in the
CUSTOMER
table.
Our RESTful web service can produce or consume either XML or JSON (short for
JavaScript Object Notation); this can be seen in the values for each of the
@Produces
and
@Consumes
annotations in our code.