er)</a> architectural style to the Java Platform.</p>

<p>In JAX-RS, Java POJOs can be exposed as RESTful Web resources independent of the underlying technology
    using a high level easy-to-use declarative annotation-based API. E.g.:</p>

<pre>
&#64;Path("widgets/{widgetid}")
&#64;Consumes("application/widgets+xml")
&#64;Produces("application/widgets+xml")
public class WidgetResource {

    &#64;GET
    public String getWidget(&#64;PathParam("widgetid") String id) {
        return getWidgetAsXml(id);
    