Extracting and customizing data from model created by SmartDocs from Swagger file

Not applicable

The default layout for the API documents pages created by SmartDocs only conveys some of the information for the API.

I want to be able to extract more data, essentially getting more variables from the "body" variable provided by the smardocs.hbr template.

As stated in the smartdocs.hbr file:

- body: An object of attributes relating to the method body:
     - contentType: The allowed Content-Type values of the body.
     - parameters: An array of body parameters, will be populated with values
       from OpenAPI (Swagger) 2.0 "in": "formData" parameters.

If possible, I would like to find the source of the javascript object so I can add extra functionality and parameters to pass.

Also I'm new to Handlebar and cannot find any online documentation on these if-statements

{{#if-query-param this.parameters}}

I cannot find this function anywhere either online or searching in my git repository.

Any gurus know where the handlebar definition is?

Thanks

2 2 383
2 REPLIES 2

Not applicable

Did you find a solution for this?

No, it seems the functions that build the SmartDocs page and the model that stores the swagger data is on the Apigee Edge side, which we can't access. See this post.