This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as cdk from '@aws-cdk/cdk'; | |
import * as SwaggerParser from "swagger-parser"; | |
import convertSwaggerToCdkRestApi from "./swaggerHelper"; | |
SwaggerParser | |
.parse("./swagger.yaml") | |
.then(swagger => { | |
const app = new cdk.App(); | |
let apiGateway = new apigateway.RestApi(this, "My Rest API", { |