You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2021/07/07 08:42:08 UTC

[GitHub] [incubator-shenyu] liangchenhe55 opened a new issue #1729: How to expose self url and retrieve apis

liangchenhe55 opened a new issue #1729:
URL: https://github.com/apache/incubator-shenyu/issues/1729


   ## Question
   
   Actually, these are two questions:
   
   1. How to expose self url?
   2. How to retrieve all the api's information.
   
   My use case is try to aggregate all the api docs of the microservice together. To do that, I have to follow these two steps:
   
   1. Let my gateway application provide swagger-ui pages. I have added the [springdoc](https://springdoc.org/#spring-webflux-support) support, but when I visit the swagger-ui url (`/swagger-ui.html`) , it says `{"code":-102,"message":"Rule not found!","data":null}`. It seems that shenyu treat it as a request that needs to be forwarded, how can I fix that?
   2. Config my swagger-ui to show all the api backend. So I need all informations. In spring cloud gateway, [`RouteDefinitionLocator `](https://github.com/springdoc/springdoc-openapi-demos/blob/master/springdoc-openapi-microservices/gateway-service/src/main/java/org/springdoc/demo/services/gateway/GatewayApplication.java#L31) can be used to achiece that. What is the equivalent in shenyu?


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-shenyu] yu199195 commented on issue #1729: How to expose self url and retrieve apis

Posted by GitBox <gi...@apache.org>.
yu199195 commented on issue #1729:
URL: https://github.com/apache/incubator-shenyu/issues/1729#issuecomment-875487002


   you can config redirect plugin to fix


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-shenyu] yu199195 closed issue #1729: How to expose self url and retrieve apis

Posted by GitBox <gi...@apache.org>.
yu199195 closed issue #1729:
URL: https://github.com/apache/incubator-shenyu/issues/1729


   


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org