Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @RequestBody #704

Open
RichardHightower opened this issue May 3, 2016 · 0 comments
Open

Add @RequestBody #704

RichardHightower opened this issue May 3, 2016 · 0 comments

Comments

@RichardHightower
Copy link
Member

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant