Extract Swagger Doc from within the same api proxy.

Hello, Is there a way to extract the Swagger Spec(OAS) used to create the api proxy, from within the same api proxy itself. Using policies or something else?

Eg:

1. You have a swagger doc called "A" to create a proxy "P1"

2. Is there any policy or any way to extract the swagger doc "A" inside "P1" and use it as an input to another proxy "P2" or something?

Basically i wanna extract the swagger from within the proxy, i don't want to give it manually.

Note: I might not have phrased this question correctly, So, thank you for understanding and helping me out.

0 2 325
2 REPLIES 2

Not applicable

I never come across this scenario. You can go through link api2swagger and try to use the same mechanism. It may help.

Hello, yes im aware of the api2swagger mechanism, but i require to use the swagger spec directly without converting the proxy to swagger and then use it.

I appreciate the help though. Thank you.