Complete the code to set a custom documentation template in Postman.
pm.documentation.setTemplate([1]);You need to pass the template file name as a string to setTemplate. So, it must be in quotes.
Complete the code to add a variable to the documentation template context.
pm.documentation.addVariable([1], 'API Version');
The variable name passed to addVariable must be a string. So, it must be in quotes.
Fix the error in the code to correctly set the documentation template.
pm.documentation.[1]('customTemplate.html');
The correct method name is setTemplate with capital T.
Fill both blanks to add title and description variables for the documentation template.
pm.documentation.addVariable([1], 'My API'); pm.documentation.addVariable([2], 'This API handles requests.');
The variable names should be 'title' and 'description' to match the template placeholders.
Fill all three blanks to define a custom template with placeholders for name, version, and description.
const template = `<h1>[1]</h1><p>Version: [2]</p><p>[3]</p>`;
The placeholders in the template should be 'title', 'version', and 'description' to display the correct information.