qbit
qbit copied to clipboard
Add @RequestBody
You need to use no annotation for the body.
@RequestParam is for query string and form params only.
/**
* Defines a request parameter used to map service method parameters to HTTP request params.
*
* @author Rick Hightower
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.PARAMETER})
public @interface RequestParam {
Spring example has a @RequestBody
. QBit does not have this. The param that is not a callback or @HeaderParam
or @RequestParam
is assumed to be the body.
So in short (which I think you figured out already.. good job), @RequestParam
is the same as Spring's @RequestParam
, and QBit does not have @RequestBody
but it should.
I will open an issue for @RequestBody
and close this issue if that is ok with you.
If you want to tackle @RequestBody
, give it a shot. I think we need it for the meta data (description).