Automating creating of API proxies with policies

Hi,

Can we automate api proxy creation with the policies that we need to add without logging into the management console UI. This will be helpful for teams who develop their own applications and use APIGEE as an api gateway for their apps. This can come a long way in self serviceability of the APIGEE platform.

A template or any framework that can automate api proxy creation, policy creation based on the requirements will be very useful. Please let me know if such a framework is available.

Thanks

0 3 968
3 REPLIES 3

Not applicable

@Ram, this might suit your requirements but not to the fullest extent, as it only creates JavaScript policies..

https://www.npmjs.com/package/generator-apiproxy

Hi @Ram - AFAIK, we don't currently provide the exact type of workflow you're looking for. But there are a couple of nice features that may help:

  • Configure a baseline API proxy that developers can use. Developers can download it and upload it as a new proxy with the management API, then build on it; or you can download and store the base proxy in source control for developers to copy into a different source control location.
  • Create a shared flow that performs logic that all API proxies would need to implement to avoid duplicate behavior by individual proxies, and developers can reference the shared flow in their proxies.

Using the Edge management API isn't graceful for the full solution you need. For example, you can create an API proxy with the management API, then create a policy for that API proxy with the management API, but then you'd have to manually update the API proxy configuration to include that new policy and manually configure the ProxyEndpoint to put the policy in the proper flow.

This might be a new answer to an old question: 

 

A command-line tool to build proxies from templates