vincentwc opened a new issue #4272:
URL: https://github.com/apache/apisix/issues/4272


   ### I need to batch create route
   Apisix supplied plugins -- batch-requests to do batch request, but i don't 
know whether it works to batch create route?
   and i send by postman failed,response show as  `500 Internal Server Error`
   
   
   My request params show :
   `
   {
       "headers": {
           "Content-Type": "application/json",
           "admin-jwt": "xxxx"
       },
       "pipeline": [
           {
               "body": {
                   "desc": "my-user-demo-82",
                   "labels": {
                       "demo_env": "user",
                       "user_env": "user"
                   },
                   "upstream": {
                       "nodes": {
                           "10.255.249.3:8082": 1
                       },
                       "type": "roundrobin"
                   },
                   "uri": "/user/hello"
               },
               "method": "PUT",
               "path": "/apisix/admin/routes/82"
           },
           {
               "body": {
                   "desc": "my-product-demo-85",
                   "labels": {
                       "demo_env": "prod",
                       "prod_env": "prod"
                   },
                   "upstream": {
                       "nodes": {
                           "10.255.249.3:8085": 1
                       },
                       "type": "roundrobin"
                   },
                   "uri": "/product/hello"
               },
               "method": "PUT",
               "path": "/product/hello"
           },
           {
               "body": {
                   "desc": "my-product-demo-85",
                   "labels": {
                       "demo_env": "prod",
                       "prod_env": "prod"
                   },
                   "upstream": {
                       "nodes": {
                           "10.255.249.3:8087": 1
                       },
                       "type": "roundrobin"
                   },
                   "uri": "/demo/hello"
               },
               "method": "PUT",
               "path": "/demo/hello"
           }
       ]
   }
   `
   request uri is : /apisix/batch-requests
   
   
   sorry the json is not format, it seem the github not support to pretty json
   
   
   
   ### Environment
   
   Request help without environment information will be ignored or closed.
   
   * apisix version (cmd: `apisix version`):
   * OS (cmd: `uname -a`):
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   * etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   * apisix-dashboard version, if have:
   * luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   


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

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


Reply via email to