apigee2openapi icon indicating copy to clipboard operation
apigee2openapi copied to clipboard

capture parameters

Open mukundha opened this issue 9 years ago • 2 comments

anil, just tried today - this is great! thanks

can we capture the parameters as well from the proxy/policy definition -- we could potentially get all params used within the proxy to populate the swagger, so smartdocs will be really useful.

for eg, Authorization headers, query params on which we do checks, apikeys params etc.

mukundha avatar Sep 18 '15 18:09 mukundha

Great suggestion @mukundha , We do capture dynamic parameters but only limited to path. For example a path with dynamic value mentioned in brackets {} is captured & used in swagger spec generation.

Are you saying parse all policies & look for headers, query params, api keys etc ? I think it's a great idea.

anil614sagar avatar Sep 24 '15 10:09 anil614sagar

Merged code supports this now; look for ExtractVariables policies in request flow and add header, query and form params to specs. #9

mjsebai avatar Aug 30 '16 19:08 mjsebai