cdk-apigateways
is an AWS CDK construct. It's help to mix multiple RestApi
or HttpApi
(API Gateway) or RestApi
(@softchef/cdk-restapi) to the same CloudFront distribution. If you have provide the Swagger 2.0
/ Open API 3.0
/ Open API 3.1
definitions file, it will generate documentation website in the same distribution.
npm install @softchef/cdk-apigateways
yarn add @softchef/cdk-apigateways
const apis = new ApiGateways(this, 'ApiGateways', {
stageName: 'prod',
originApisConfig: {
books: {
originApi: booksApi,
},
articles: {
originApi: articlesApi,
},
},
distribution: {
comment: 'ApiGateways',
},
documentation: {
s3Bucket: docBucket,
file: './docs/swagger.yaml',
},
});
- Add architecture diagram
- Add about Redoc
This code is licensed under the Apache License 2.0. See the LICENSE file.