Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Apigee & Cloud Code -> How to update proxy definitions

Hey Apigee community,

I'm trying to use the cloud code plugin for apigee to define and create our API. After reading through all relevant docs I was able to use it and to create proxy definitions, saving them on API Hub and also to create API proxy bundles. 

But what I do not understand and for what I need you support is: How can we change existing proxies once we have saved them? It seems to me as if the process stops after saving a definition the first time. And I could not find any helpful ressource that explains a normal development workflow with multiple iterations. 

All I see is that we can save an existing yaml definition like this:

drm80_0-1729403913444.png

So if anyone has experience with that or knows how to use cloud code to iteratively develop on api proxies please let me know.

 

0 4 703
4 REPLIES 4

Hi @drm80, we've noticed that your question hasn't received a reply yet - we'll keep an eye on this thread to help ensure you get a response. In the meantime, feel free to explore the product articles and check out upcoming events for more insights within the Apigee Community.

Thank you for your patience and engagement!

Hi @drm80

It's great to see you using this feature!

It looks like you're trying to revise an existing OpenAPI specification file (YAML). Currently, you can't directly edit and save over an existing file from API Hub in Cloud Code. At the moment, you can only edit it and we require that you publish it as new version.

See the example below:
Update Spec in API hub.gif

We understand the need for direct editing and saving of the original, and our team is exploring ways to support this in a future release.

Hey scarter808,

thank you for your reply. I think that already helps. So is there any timeline you have for this feature request?

Best,

Martin

Hey @drm80 ,

While there's no set timeline for the direct editing of the API spec in Cloud Code, the team is aware of this need and plans to address it in the future. I can't give you an exact date for when that will be available, but I'll be sure to pass along your feedback to the team.

In the meantime, it looks like you can actually edit your API spec directly within API Hub! If you access your spec through the API Hub console, you should be able to make your changes there.

Here's a link to the documentation that confirms this: https://cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions....

Let me know if you have any other questions.