Create proxy from OpenAPI spec via the management API

I'm looking through the management API documentation and I can't find anything on how to create a proxy from an OpenApi spec. Is this possible to do via the management API?

Solved Solved
0 3 390
1 ACCEPTED SOLUTION

Because it's a wizard that does the job of generating set of policies that implement proxy, you need to generate the proxy bundle then use standard import bundle management api request to upload it to the Edge.

Use

https://www.npmjs.com/package/openapi2apigee

See its code to see how mAPI is used in the lib dependency:

https://github.com/apigee/apigeetool-node

For usage details:

https://community.apigee.com/articles/8796/openapi2apigee-a-nodejs-command-line-tool-to-generate.htm...

View solution in original post

3 REPLIES 3

Because it's a wizard that does the job of generating set of policies that implement proxy, you need to generate the proxy bundle then use standard import bundle management api request to upload it to the Edge.

Use

https://www.npmjs.com/package/openapi2apigee

See its code to see how mAPI is used in the lib dependency:

https://github.com/apigee/apigeetool-node

For usage details:

https://community.apigee.com/articles/8796/openapi2apigee-a-nodejs-command-line-tool-to-generate.htm...

@ylesyuk

Thanks for pointing me in the right direction. This will work for us but it looks like it only works with swagger version 1 and 2. It doesn't seem to work with OpenApi spec 3.0. Do you know anything about that and if it will be updated to work with the OpenApi spec 3.0?

There is an open issue for that https://github.com/anil614sagar/openapi2apigee/issues/43 but no comments yet.

That's Anil's baby and he's passionate about it.

This is a strategic functionality and Edge wizard already supports it (https://community.apigee.com/questions/62704/openapi-3-support.html).

So I hope, this tool support is just a matter of time.

@Anil Sagar @ Google: Any comments?