I need to automate the proxy creation using an Open Api Documentation, but more than it, I need to add some default policies to this brand new proxy.
The 'openapi2apigee' node module creates the proxy fom the Open Api Doc, but I could not find a way to add the default policies after it. The 'openapi2apigee' module has the Apigee-127 extensions that creates policies and attaches to a proxy, but its not an option for me since the person who will build the Open API Documentation has no knowledge about policies.
Using the management API I would be able to GET the proxy that has been just created and use the response in a POST payload, just adding the new policies to JSON/XML. Is there any better option ?
Solved! Go to Solution.
@Caio Kiyoshi Isikawa - I wrote this util a while back. This is a Yeoman generator that takes a bunch of inputs including the spec and generates an end to end project structure with all the policies baked into it. Take a look at this. Make sure you checkout the "cgsaas" branch as the main branch example is for Apigee X which is not what you want.
It's based on the template and the script that does some manipulation. Feel free to fork that repo and make changes that suits your requirement. Again this was a test side project and something that is not Google supported. Surely a good start though. Feel free to fork and extend.