The Java(TM) API for RESTful Web Services (JAX-RS) 1.1 1.0.1.Final

Package javax.ws.rs

High-level interfaces and annotations used to create RESTful service resources.

See: Description

Package javax.ws.rs Description

High-level interfaces and annotations used to create RESTful service resources. E.g.:
 @Path("widgets/{widgetid}")
 @Consumes("application/widgets+xml")
 @Produces("application/widgets+xml")
 public class WidgetResource {

 @GET
 public String getWidget(@PathParam("widgetid") String id) {
 return getWidgetAsXml(id);
 }

 @PUT
 public void updateWidget(@PathParam("widgetid") String id,
 Source update) {
 updateWidgetFromXml(id, update);
 }

 ...
 }
 
The Java(TM) API for RESTful Web Services (JAX-RS) 1.1 1.0.1.Final

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.