You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/09/11 08:23:20 UTC

[GitHub] [apisix-dashboard] liuxiran opened a new issue #469: Feature: debug a route online

liuxiran opened a new issue #469:
URL: https://github.com/apache/apisix-dashboard/issues/469


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [ ] Bug
   - [ ] Requirements
   - [ ] Feature or performance improvement
   - [ ] Other
   
   ___
   ### Question
   - What do you want to know?
   
   ___
   ### Bug
   - Which version of Apache APISIX Dashboard, OS, and Browser?
   
   - What happened?
   If possible, provide a way to reproduce the error.
   
   ___
   ### Requirement or improvement
   - Please describe your requirements or improvement suggestions.
   
   **Online debugging would be convenient for users to test the route:**
   
   1. support authentication
   
   1. support to edit request params
   
   1. support to show the response info
   
   1. friendly UI  (swagger UI maybe a good choose,  Investigating~~)


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



[GitHub] [apisix-dashboard] liuxiran commented on issue #469: Feature: debug a route online

Posted by GitBox <gi...@apache.org>.
liuxiran commented on issue #469:
URL: https://github.com/apache/apisix-dashboard/issues/469#issuecomment-692861654


   After research on swagger-ui, and tried to introduce [swagger-ui-react](https://www.npmjs.com/package/swagger-ui-react ) in our project, I found it would be a  feasible solution to do the online debug here, and the **demo** just like this:
   
   1. add a [online debug] button in route list
   ![image](https://user-images.githubusercontent.com/2561857/93241981-b3c07880-f7b8-11ea-8f63-e730899b60b8.png)
   
   1. click the debug button, get the route info, tranfer the data to the swagger json object, then render the debug page
   ![image](https://user-images.githubusercontent.com/2561857/93242244-13b71f00-f7b9-11ea-8d62-c7d62bd448d7.png)
   ![image](https://user-images.githubusercontent.com/2561857/93242400-57aa2400-f7b9-11ea-8ece-61d83fb15161.png)
   
   1. click [Execute] button, directly initiate a cross-domain request to apisix, and then get response
   ![image](https://user-images.githubusercontent.com/2561857/93242763-e028c480-f7b9-11ea-9f90-598857335992.png)
   
   
   The original design was to make a pure front-end function, but due to browser security restrictions, cross-domain requests initiated directly by the front-end cannot directly modify the Host attribute of the request header. This is inconsistent with our business logic, so **this function still needs to rely on manager-api to help forward the request**🤦‍♀️.
   
   How about this proposal? Looking forward to your feedback,thanks @juzhiyuan 
   


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



[GitHub] [apisix-dashboard] membphis commented on issue #469: Feature: debug a route online

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #469:
URL: https://github.com/apache/apisix-dashboard/issues/469#issuecomment-693426115


   After researching, the test request does not require any specific request headers.
   
   On the dashboard, it directly simulates the user's request. Very good function, look forward to.


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



[GitHub] [apisix-dashboard] juzhiyuan closed issue #469: Feature: debug a route online

Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #469:
URL: https://github.com/apache/apisix-dashboard/issues/469


   


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



[GitHub] [apisix-dashboard] membphis commented on issue #469: Feature: debug a route online

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #469:
URL: https://github.com/apache/apisix-dashboard/issues/469#issuecomment-693268651


   That is a useful feature. We can use a specified header for testing. Any suggestion?


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



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #469: Feature: debug a route online

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #469:
URL: https://github.com/apache/apisix-dashboard/issues/469#issuecomment-693117338


   Looks good to me, and this needs a backend to proxy those different origins' requests, I guess this doesn't depend on DB, so feel free to go :D


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



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #469: Feature: debug a route online

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #469:
URL: https://github.com/apache/apisix-dashboard/issues/469#issuecomment-690996064






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



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #469: Feature: debug a route online

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #469:
URL: https://github.com/apache/apisix-dashboard/issues/469#issuecomment-690996064






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



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #469: Feature: debug a route online

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #469:
URL: https://github.com/apache/apisix-dashboard/issues/469#issuecomment-693269716


   take a look at those requests sent from Swagger UI?


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



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #469: Feature: debug a route online

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #469:
URL: https://github.com/apache/apisix-dashboard/issues/469#issuecomment-690996064


   ping @membphis @moonming 


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