-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
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
Labels
No labels