Generating RESTful JavaScript clients for our RESTful web services

In the previous section, we saw how to generate Java clients for our RESTful web services. A common scenario is to develop RESTful web services in Java and RESTful web service clients in JavaScript running in the browser. Just as NetBeans can generate Java clients, it can also generate JavaScript clients for our RESTful web services.

To generate JavaScript clients for our RESTful web services, go to File | New in a web application project, select the Web Services category, and select the RESTful JavaScript Client file type:

Generating RESTful JavaScript clients for our RESTful web services

In the next step in the wizard, select Tablesorter UI from ...

Get Java EE 7 Development with NetBeans 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.