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

How to programmically render and publish all methods associated with an API Model, during the API Model creation process

Not applicable

Referring to this previous question.

Instead of redirecting the user to the Method Admin page, it is preferred all the methods are rendered and published automatically.
What code would be needed to complete this process?

I have been looking through the code for "DeveloperPortal\profiles\apigee\modules\custom\devconnect\smartdocs\smartdocs.admin.inc" and

"DeveloperPortal\profiles\apigee\modules\custom\devconnect\smartdocs\batch\smartdocs.render.inc".

It looks like the forms for rendering methods call the smartdocs_render_node (not smartdocs_render_nodes ) function, but I can not find the definition for this function.

Any help would be appreciated.

Thank you for your time,

Mitchel

Solved Solved
2 15 572
1 ACCEPTED SOLUTION

@Mitchel Skees ,

Great Question,

Take a look at the custom module smartdocs services developed by @Yuriy that does exactly same, "publish & render" through an API.

I believe you can get the code that you are looking for from above module / install the module in your portal & call the method from your custom module to integrate same.

Hope it helps.

View solution in original post

15 REPLIES 15