Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate Java classes from REST

With SOAP WebSevices and WSDL it's very easy to generate a Java WebService client with wsimport.

Is there a similar way to do this for Java REST clients?

Thanks, Simon

like image 418
Simon Martinelli Avatar asked Apr 05 '26 17:04

Simon Martinelli


1 Answers

Take a look at Alchemy Rest Client Generator. It can generate a jersey 2.0 java client for your JAX-RS REST services by integrating into your server builds.

The client will mimic the exact service API. However this project does not yet support WADL and does not handle marshalling and demarshalling of your transfer objects.

Disclaimer: I am the author of this project.

like image 91
Ashish Shinde Avatar answered Apr 08 '26 14:04

Ashish Shinde



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!