Apigee-go-gen Apihub template creation - APIGEEX - Apihub

Hi Google Community,

Is there a way we can use go-lang/apigee-go-gen to create some generic template to register and versioning in API hub.

Till now only using curl and apigeecli cmd we can register in API hub, by providing json. But is it possible to have a generic template where we can automate the registration process.

Hey @Sanghita_Chakraborty , it’s possible in a sense. You can create a template that outputs a shell script. And then run that shell script. I’ve done just that recently with one of our customers that needed to create APIs, Versions, and specs in API Hub from data they had in Terraform files.

From your description, it seems your use-case is somewhat similar, but your source data is different. Can you give examples of what your source data looks like?

Also, if you have access an an LLM like Claude, or Gemini, they can help out creating go style templates, and get you 90% of the way there. In any case, I’ll await your response, and hopefully we can help you out.