API开发问题

TraceCreateRequest里面是验证,

<span style="color:#c792ea;">public function </span><span style="color:#82b1ff;">rules</span><span style="color:#798194;">()<br></br></span><span style="color:#cad3de;">{<br></br></span><span style="color:#c792ea;">return </span><span style="color:#cad3de;">[<br></br></span><span style="color:#c3e887;">'corpId'     </span><span style="color:#80cbc4;font-weight:bold;">=> </span><span style="color:#c3e887;">'required|integer'</span><span style="color:#a7dbd8;">,</span><span style="color:#c3e887;"><br></br></span><span style="color:#cad3de;">]</span><span style="color:#a7dbd8;">;<br></br></span><span style="color:#cad3de;">}</span>

``

public function getA(TraceCreateRequest $request){    
  return response('ok', 200);
}<br></br>

如果验证不通过,那客户收到的是什么..客房比如没有传corpId过来,我这里是做api的

snail
修改的评论也不能少于六个字哦!