Skip to main content

@stormreply/cdk-openapi

Project description

cdk-openapi

An AWS CDK construct which generates API Gateway exposed Lambda functions from an OpenAPI specification in your stack.

Usage

JavaScript

Install via npm:

$ npm i @stormreply/cdk-openapi

Add to your CDK stack:

import { OpenAPI } from 'cdk-openapi'

const api = new OpenAPI(this, 'SampleAPI', {
  api: 'api.yaml'
});

Python

Install via pip:

$ pip install cdk-openapi

Add to your CDK stack:

from cdk-openapi import OpenAPI

api = OpenAPI(
    self, "SampleAPI", {
      api='api.yaml'
    }
)

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stormreply.cdk-openapi-0.0.2.tar.gz (10.3 kB view hashes)

Uploaded Source

Built Distribution

stormreply.cdk_openapi-0.0.2-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page