|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@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.
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);
}
Rest,
Get,
Post,
Delete,
Head,
Options| Required Element Summary | |
|---|---|
String |
value
|
| Element Detail |
|---|
public abstract String value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||