This topic has not yet been written. The content below is from the topic description.
Example 44.3. Using the API Here is an example of JAX-RS API: @Path("foo") public class Foo{ @Path("{id}") @GET public String get(@QueryParam("order") String order, @HeaderParam("X-Foo") String header, @MatrixParam("colour") String colour, @CookieParam("Foo-Cookie") String cookie){ … } @POST public void post(String text){ } } We can use the previous JAX-RS API in JavaScript using the following code: var text = Foo.get({order: 'desc', 'X-Foo': 'hello', colour: 'blue', 'Foo-Cookie': 123987235444}); Foo.put({$entity: text});