@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface InnerBodyParam
Bind the value of a field of an json object passed in http body, to the annotated parameter.
Exemple :
{
myFirst : 120,
mySecond : { comment:"It's a trap !" }
}
Can be map to :
void myService(@InnerBodyParam("myFirst") long myFirstValue, @InnerBodyParam("mySecond") Comment comment)
- Author:
- npiedeloup