Sunday, March 20, 2011

JAX-RS, RestEasy, Restful WS

A great tutorial from Luciano:
http://blog.aestasit.com/develop-restful-services-like-a-ninja-part-1/
http://blog.aestasit.com/develop-restful-services-like-a-ninja-%E2%80%93-part-2/


JAX-RS = Java API for RESTful Web Services

here http://www.ibm.com/developerworks/webservices/library/wa-jaxrs/index.html general presentation of JAX-RS

The Resteasy doc is here (don't expect complete examples, only code snippets are provided)
http://docs.jboss.org/resteasy/docs/1.0.1.GA/userguide/html/

the annotations are in javax.ws.rs package

Path(value="/contacts")
@GET
@Consumes
@Produces
@Provider
@QueryParam
@HeaderParam
@MatrixParam
@CookieParam

(see the rest on the javadoc...)


Here a decent example (better than the official doc anyway)

1 comment:

Mr. President said...

Thanks for referencing my blog post.