Related question: Is there a Smartdocs URL to the individual Resources? I can only find URLs to the individual Methods (each with the Resource summary) For example: SmartDocs URL /apis/get/MyResource, will detail the “get” Method on the “MyResource” Resource. Looking for something like: /apis/MyResource, to detail the “MyResource” Resource, and its definifion, incl. fields with example values.
This would come from the Swagger 2.0 model definitions, for example (JSON):
Currently you can achieve it partly using the JS objects available for the smartdocs temaplte.( rename the attachment to .hbr and apply on your devportal smartdocs settings.
model.apiSchema.expandedSchema
Please find the attached custom template.hbr which expands response schema, Please feel free to extend it and let us know your feedback on required JS variables for template.
Please find the attached custom template-withSchema.txt ( need to rename to hbr ) which expands response schema, Please feel free to extend it and let us know your feedback on required JS variables for template.
Thanks @seshi, I could see the modifications that you made to the Method template under the SmartDocs settings of a model. I am getting the additional Schema Definitions section now under a method’s documentation page.
Will have to play with this more, to see how to actually get the request and response schema’s to show up.
Maybe you have a screenshot too, to share. Thanks!!!