def on_before_transform_template(self, template_dict):
template = SamTemplate(template_dict)<EOL>for logicalId, api in template.iterate(SamResourceType.Api.value):<EOL><INDENT>if api.properties.get('<STR_LIT>') or api.properties.get('<STR_LIT>'):<EOL><INDENT>continue<EOL><DEDENT>api.properties['<STR_LIT>'] = SwaggerEditor.gen_skeleton()<EOL>api.properties['<STR_LIT>'] = True<EOL><DEDENT>
Hook method that gets called before the SAM template is processed.
The template has passed the validation and is guaranteed to contain a non-empty "Resources" section.

:param dict template_dict: Dictionary of the SAM template
:return: Nothing