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