DWR as a Javascript library for REST

Is there a Javascript library like DWR that can generate a javascript stub for REST api. We use Jersey / JSR -311 for REST on the server and wonder if, instead of using libraries like JQuery or dojo, if there is a library that can take the Rest class annotated using JSR311 annotations and create a javascript stub like DWR ?

+3
source share
2 answers

This seems to be one of the great advantages of RESTEasy over Jersey. See http://docs.jboss.org/resteasy/docs/2.0.0.GA/userguide/html/AJAX_Client.html for details .

I don’t know if functionality works on Jersey or not.

What I would like to see: Created API test pages for REST and SOAP pages, such as .NET.

+2
source

I am going to do such a thing for RESTEasy , an implementation of JBoss JAX-RS. You can expect it for a month. It can even become portable and work on a jersey if there is traction.

0
source

Source: https://habr.com/ru/post/1713713/


All Articles