javax.ws.rs.package-info Maven / Gradle / Ivy
/**
* High-level interfaces and annotations used to create RESTful service
* resources. E.g.:
@UriTemplate("widgets/{widgetid}")
@ConsumeMime("application/widgets+xml")
@ProduceMime("application/widgets+xml")
public class WidgetResource {
@HttpMethod(GET)
public String getWidget(@UriParam("widgetid") String id) {
return getWidgetAsXml(id);
}
@HttpMethod(PUT)
public void updateWidget(@UriParam("widgetid") String id,
Source update) {
updateWidgetFromXml(id, update);
}
...
}
*/
package javax.ws.rs;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy