@Retention(value=CLASS)
@Target(value=METHOD)
public @interface Delete
Use on methods in Rest annotated class to add a new rest service of
type DELETE.
This annotation as the EXACT same constraints as Post.
Example :
@Rest(rootUrl = "http://myserver", converters = MappingJacksonHttpMessageConverter.class)
public interface MyRestClient {
@Delete("/events/delete/last")
Event deleteEvent();
@Delete("/events/new/{id}")
void deleteEvent(Event event, int id);
}
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
value |
Copyright © 2010-2014. All Rights Reserved.