Generated JavaScript structure
Example 44.2. Structure of JAX-RS generated JavaScript For example, if the JAX-RS resource X defines methods Y and Z: @Path("/") public interface X{ @GET public String Y(); @PUT public void Z(String entity); } Then the JavaScript API will define the following functions: var X = { Y : function(params){…}, Z : function(params){…} };