The Java microservice lib. QBit is a reactive programming lib for building microservices - JSON, HTTP, WebSocket, and REST. QBit uses reactive programming to build elastic REST, and WebSockets based cloud friendly, web services. SOA evolved for mobile and cloud. ServiceDiscovery, Health, reactive StatService, events, Java idiomatic reactive programming for Microservices.
@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).
You need to use no annotation for the body.
@RequestParam is for query string and form params only.
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).