Skip navigation links

Jakarta EE Platform API v9.1.0

Package jakarta.ws.rs

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

See: Description

Package jakarta.ws.rs Description

High-level interfaces and annotations used to create RESTful service resources. For example:
 @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);
     }

     ...
 }
 
Skip navigation links

Jakarta EE Platform API v9.1.0

Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.