tag:blogger.com,1999:blog-70653080450693923332024-02-20T16:48:55.870-08:00My ProjectsPaul S. Russohttp://www.blogger.com/profile/13110592899304575391noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-7065308045069392333.post-69691850624043332702013-06-15T11:45:00.002-07:002013-06-16T17:42:18.656-07:00JAX-RS 2 Starter ProjectI've been experimenting with new features in JAX-RS 2, <a href="http://www.jcp.org/en/jsr/detail?id=339">The Java API for RESTful Web Services</a>. In doing so, I have created a <a href="https://github.com/jchart-github/jaxrs2-starter-kit">jaxrs2-starter-kit</a> project to help others quickly get up and running. It is available for download at GitHub by issuing the following command:<br />
<br />
git clone https://github.com/jchart-github/jaxrs2-starter-kit.git<br />
<br />
It contains sample client and server that is easily built and run using Maven.<br />
<br />
The project demonstrates:<br />
<ul>
<li>The new Client API</li>
<li>Request/Response</li>
<li>The Invocation Object and the Command Pattern</li>
<li>Build-in Entity Resolvers for Object Unmarshalling</li>
<li>Server Resource</li>
<li>Server Filter</li>
<li>Spring Integration</li>
<li>Content Negotiation with using default Entity Resolvers </li>
</ul>
<br />
<a href="https://github.com/jchart-github/jaxrs2-starter-kit">Browse the jaxrs2-starter-kit</a><br />
<br />
The starter kits implements a /books resource.<br />
It uses the following rules in its RESTFul implementation: <br />
<br />
For collections <br />
<br />
Resource /books<br />
@POST create a new book<br />
@GET list all books<br />
@PUT bulk update books<br />
@DELETE delete all books<br />
<br />
<br />
For single resources <br />
<br />
Resources /books/{id}<br />
@POST Error<br />
@GET return a book <br />
@PUT if exists, update book; if not ERROR<br />
@DELETE delete a book<br />
<br />
<br />
<br />
<ul>
</ul>
Paul S. Russohttp://www.blogger.com/profile/13110592899304575391noreply@blogger.com2