|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=CLASS) @Target(value=METHOD) public @interface Post
Use on methods in Rest annotated class to add a new rest service of
type POST.
Get.
If an extra parameter is present (ie the only one not mapped with URI
placeholders) it will be send in the request body using given converter.
Example :
@Rest(rootUrl = "http://myserver", converters = MappingJacksonHttpMessageConverter.class)
public interface MyRestClient {
@Post("/events/new/random")
Event newEvent();
@Post("/events/new/{id}")
void newEvent(Event event, int id);
}
Rest,
Get,
Put,
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 | |||||||||