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

   > > @Winniepoom  Below is the result of my execution, you can see
   > 
   > ```
   > ➜  apisix-docker git:(master) ✗ curl 
http://127.0.0.1:9080/apisix/admin/routes/1 \
   > -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   > {
   >     "uri": "/apisix/batch-requests",
   >     "plugins": {
   >         "public-api": {}
   >     }
   > }'
   > 
{"action":"set","node":{"value":{"update_time":1665568096,"create_time":1665568096,"uri":"\/apisix\/batch-requests","priority":0,"status":1,"id":"1","plugins":{"public-api":{}}},"key":"\/apisix\/routes\/1"}}
   > ➜  apisix-docker git:(master) ✗
   > ➜  apisix-docker git:(master) ✗
   > ➜  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:48:50 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:48:50 GMT"},"reason":"Not Found","body":"{\"error_msg\":\"404 
Route Not Found\"}\n","status":404}]
   > ➜  apisix-docker git:(master) ✗
   > ```
   
   @Winniepoom  sorry,  there is a problem with the code in my previous post, 
you can try again according to what I wrote


-- 
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