Skip to content

Sample Response not rendered #9

@smmathur

Description

@smmathur

For the template, the Sample Response for HTTP 200 is not rendered by default in the "Response Sample" section.
The template has a code which should be able to render it, but it doesn’t render on the Portal.

{
         Apigee.APIModel.responseModelRef = sp.path_info.responses["200"].schema.$ref.split("#/definitions/")[1];

         if(Apigee.APIModel.responseModelRef){
            Apigee.APIModel.responseSample = JSON.stringify(sp.path_info.responses["200"].examples["application/json"], null, 2);
         }
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions