juzhiyuan commented on pull request #1813:
URL: https://github.com/apache/apisix-dashboard/pull/1813#issuecomment-832679773


   As for `key is required` issue, @nic-chen please take a look.
   ```
   curl 'http://localhost:8000/apisix/admin/routes' \
     -H 'Connection: keep-alive' \
     -H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="90", "Google 
Chrome";v="90"' \
     -H 'Accept: application/json' \
     -H 'Authorization: 
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MjAyMjIzNzgsImlhdCI6MTYyMDIxODc3OCwic3ViIjoiYWRtaW4ifQ.n-kqe-O125cu1p0T01FhMKFRyg6MsRE2sqpTmMeEQO8'
 \
     -H 'sec-ch-ua-mobile: ?0' \
     -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36' \
     -H 'Content-Type: application/json;charset=UTF-8' \
     -H 'Origin: http://localhost:8000' \
     -H 'Sec-Fetch-Site: same-origin' \
     -H 'Sec-Fetch-Mode: cors' \
     -H 'Sec-Fetch-Dest: empty' \
     -H 'Referer: http://localhost:8000/routes/create' \
     -H 'Accept-Language: en,zh-CN;q=0.9,zh;q=0.8' \
     -H 'Cookie: _ga=GA1.1.1414702999.1618817327; 
_ga_WQLBQL6GY3=GS1.1.1618817327.1.1.1618817540.0; next-i18next=en-US; 
_gid=GA1.1.619947394.1620143250' \
     --data-raw 
'{"uris":["/*"],"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"],"priority":0,"name":"test222","desc":"","status":1,"labels":{},"script":{"chart":{"cells":[{"shape":"edge","attrs":{"line":{"stroke":"#5F95FF","strokeWidth":1,"targetMarker":{"name":"classic","size":8}}},"id":"25e20dd5-ca57-4b60-ba05-405b0a078ac0","router":{"name":"manhattan"},"zIndex":0,"source":{"cell":"69ca1277-fd6c-4486-b7df-4de4547f30d9","port":"fa3f2c5b-8fd5-482b-8544-4148d0f0bb00"},"target":{"cell":"be7c5c72-00be-4678-92c1-cda07ecfe735","port":"b5ddd0eb-4ecb-462b-9723-019087933544"}},{"position":{"x":160,"y":90},"size":{"width":80,"height":42},"attrs":{"text":{"textWrap":{"text":"开始"}},"body":{"rx":24,"ry":24}},"shape":"flow-chart-start-rect","ports":{"groups":{"top":{"position":"top","attrs":{"circle":{"r":3,"magnet":true,"stroke":"#5F95FF","strokeWidth":1,"fill":"#fff","style":{"visibility":"hidden"}}}},"right":{"position":"right","attrs":{"circle":{"r":3,"m
 
agnet":true,"stroke":"#5F95FF","strokeWidth":1,"fill":"#fff","style":{"visibility":"hidden"}}}},"bottom":{"position":"bottom","attrs":{"circle":{"r":3,"magnet":true,"stroke":"#5F95FF","strokeWidth":1,"fill":"#fff","style":{"visibility":"hidden"}}}},"left":{"position":"left","attrs":{"circle":{"r":3,"magnet":true,"stroke":"#5F95FF","strokeWidth":1,"fill":"#fff","style":{"visibility":"hidden"}}}}},"items":[{"group":"bottom","id":"fa3f2c5b-8fd5-482b-8544-4148d0f0bb00"}]},"id":"69ca1277-fd6c-4486-b7df-4de4547f30d9","zIndex":1},{"position":{"x":100,"y":187},"size":{"width":200,"height":60},"attrs":{"text":{"text":"key-auth"},"title":{"text":"key-auth"}},"shape":"flow-chart-plugin-rect","ports":{"groups":{"top":{"position":"top","attrs":{"circle":{"r":3,"magnet":true,"stroke":"#5F95FF","strokeWidth":1,"fill":"#fff","style":{"visibility":"hidden"}}}},"bottom":{"position":"bottom","attrs":{"circle":{"r":3,"magnet":true,"stroke":"#5F95FF","strokeWidth":1,"fill":"#fff","style":{"visibility":"
 
hidden"}}}}},"items":[{"group":"top","id":"b5ddd0eb-4ecb-462b-9723-019087933544"},{"group":"bottom","id":"de0bae68-787d-4977-b75b-b8f030d0636e"}]},"id":"be7c5c72-00be-4678-92c1-cda07ecfe735","zIndex":2,"data":{"disable":false}}]},"conf":{"be7c5c72-00be-4678-92c1-cda07ecfe735":{"disable":false}},"rule":{"root":"be7c5c72-00be-4678-92c1-cda07ecfe735"}},"vars":[],"upstream_id":"352139465977758504"}'
 \
     --compressed
   ```


-- 
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:
us...@infra.apache.org


Reply via email to