Hazel6869 commented on issue #8078:
URL: https://github.com/apache/apisix/issues/8078#issuecomment-1275845898

   > Below is the result of my execution, you can see
   
   ➜  apisix-docker git:(master) ✗ curl 
http://127.0.0.1:9080/apisix/admin/routes/br \
   -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "uri": "/batch-requests",
       "plugins": {
           "public-api": {
               "uri": "/apisix/batch-requests"
           }
       }
   }'
   
{"action":"set","node":{"value":{"update_time":1665565821,"create_time":1665562773,"uri":"\/batch-requests","priority":0,"status":1,"id":"br","plugins":{"public-api":{"uri":"\/apisix\/batch-requests"}}},"key":"\/apisix\/routes\/br"}}
   ➜  apisix-docker git:(master) ✗ curl --location --request POST 
'http://127.0.0.1:9080/apisix/batch-requests' \
   --header 'Content-Type: application/json' \
   --data '{
       "headers": {
           "Content-Type": "application/json",
           "admin-jwt":"xxxx"
       },
       "timeout": 500,
       "pipeline": [
           {
               "method": "POST",
               "path": "/community.GiftSrv/GetGifts",
               "body": "test"
           },
           {
               "method": "POST",
               "path": "/community.GiftSrv/GetGifts",
               "body": "test2"
           }
       ]
   }'
   [{"headers":{"Connection":"keep-alive","Content-Type":"text\/plain; 
charset=utf-8","Server":"APISIX\/2.15.0","Transfer-Encoding":"chunked","Date":"Wed,
 12 Oct 2022 09:10:34 GMT"},"reason":"Not Found","body":"{\"error_msg\":\"404 
Route Not 
Found\"}\n","status":404},{"headers":{"Connection":"keep-alive","Content-Type":"text\/plain;
 
charset=utf-8","Server":"APISIX\/2.15.0","Transfer-Encoding":"chunked","Date":"Wed,
 12 Oct 2022 09:10:34 GMT"},"reason":"Not Found","body":"{\"error_msg\":\"404 
Route Not Found\"}\n","status":404}]
   ➜  apisix-docker git:(master) ✗ curl --location --request POST 
'http://127.0.0.1:9080/apisix/batch-requests' \
   --header 'Content-Type: application/json' \
   --data '{
       "headers": {
           "Content-Type": "application/json",
           "admin-jwt":"xxxx"
       },
       "timeout": 500,
       "pipeline": [
           {
               "method": "POST",
               "path": "/community.GiftSrv/GetGifts",
               "body": "test"
           },
           {
               "method": "POST",
               "path": "/community.GiftSrv/GetGifts",
               "body": "test2"
           }
       ]
   }'
   [{"headers":{"Connection":"keep-alive","Content-Type":"text\/plain; 
charset=utf-8","Server":"APISIX\/2.15.0","Transfer-Encoding":"chunked","Date":"Wed,
 12 Oct 2022 09:10:45 GMT"},"reason":"Not Found","body":"{\"error_msg\":\"404 
Route Not 
Found\"}\n","status":404},{"headers":{"Connection":"keep-alive","Content-Type":"text\/plain;
 
charset=utf-8","Server":"APISIX\/2.15.0","Transfer-Encoding":"chunked","Date":"Wed,
 12 Oct 2022 09:10:45 GMT"},"reason":"Not Found","body":"{\"error_msg\":\"404 
Route Not Found\"}\n","status":404}]
   ➜  apisix-docker git:(master) ✗
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to