repo_description: Deploy Node.js projects to AWS Lambda and API Gateway easily
repo_topics: api-gateway aws aws-lambda claudia javascript nodejs serverless
code: module.exports = function clearApi(apiGateway, restApiId, title) {
  	'use strict';
  	const apiTemplate = {
  		swagger: '2.0',
  		info: {
  			title: title,
  			version: String(Date.now())
  		},
  		paths: {
  			'/': {}
  		}
  	};
  	return apiGateway.putRestApiPromise({
  		restApiId: restApiId,
  		mode: 'overwrite',
  		body: JSON.stringify(apiTemplate)
  	});
  };
  
  