You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "minshiwu (via GitHub)" <gi...@apache.org> on 2023/04/03 06:55:21 UTC

[GitHub] [servicecomb-java-chassis] minshiwu opened a new issue, #3741: GET接口是如何支持类似RequestBody机制的?

minshiwu opened a new issue, #3741:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3741

   在通过Servicecomb发布和启动微服务里面,支持对Get接口,也定义Model class进行参数映射,且mode class支持java validation注解。看起来像Post接口一样。请问Servicecomb源码是在哪里进行处理的?
   
   ```java
   // 发布Get接口
   @RequestMapping(value = {"/apply/apply-list"}, method = {RequestMethod.GET})
   public Object queryApplyList(@Valid QueryApplyReq queryApplyReq) throws Exception {
      // 
   }
   
   //  Model define
   @Data
   public class QueryApplyReq extends BaseReq {
       @Length(max = 50, message = "operator_id length range is [0, 50]")
       @JsonProperty("operator_id")
       @ApiModelProperty(name = "operator_id", dataType = "string")
       private String operatorId;
   
       @Length(max = 50, message = "approver_id length range is [0, 50]")
       @JsonProperty("approver_id")
       @ApiModelProperty(name = "approver_id", dataType = "string")
       private String approverId;
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] lbc97 commented on issue #3741: GET接口是如何支持类似RequestBody机制的?

Posted by "lbc97 (via GitHub)" <gi...@apache.org>.
lbc97 commented on issue #3741:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3741#issuecomment-1493836353

   正常springboot 框架这样也可以吧 应该是直接借用的springboot框架的能力


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org