You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2022/12/05 06:40:50 UTC

[GitHub] [shenyu] tian-pengfei opened a new issue, #4235: [Task] mock plugin supports generation of mock data on request

tian-pengfei opened a new issue, #4235:
URL: https://github.com/apache/shenyu/issues/4235

   ### Description
   
   + request 
   
       Query Params: id =1
       request_headers: header_name:header_value
       request_body:
      ```json
         {
             "id":12,
             "name":"shenyu",
             "address":{
                 "country":"CHINA"
             }
         }
       ```
       
   
   
   
   
   
   
   
   + responseContent Config
   ```tex
   {
     "name": ${expression|#req.json.name},
      "country":${expression|#req.json.address.country},
      "header_name":${expression|#req.headers[header_name]},
       "method":${expression|#req.method},
       "json_id":${expression|#req.json.id},
       "query_id":${expression|#req.queries[id]}
   }
   ```
   
   + resonse result
   ```json
   {
       "name": "shenyu",
       "country": "CHINA",
       "header_name": "header_value",
       "method": "GET",
       "json_id": 12,
       "query_id": "1"
   }
   
   ```
   
   ### Task List
   
   _No response_


-- 
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: notifications-unsubscribe@shenyu.apache.org.apache.org

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


[GitHub] [shenyu] tian-pengfei closed issue #4235: [Task] mock plugin supports generation of mock data on request

Posted by GitBox <gi...@apache.org>.
tian-pengfei closed issue #4235: [Task] mock plugin  supports  generation of  mock data on request
URL: https://github.com/apache/shenyu/issues/4235


-- 
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: notifications-unsubscribe@shenyu.apache.org

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