Skip to main content

cdk-alps-spec-rest-api

Project description

NPM version PyPI version Release

CDK Alps Spec Rest Api

The CDK Alps Spec Rest Api construct generates an AWS API Gateway out of an ALPS API yaml file such src/todo-alps.yaml. ALPS API is an abstraction of APIs like REST API or Graph QL. More about the ALPS API see in the ALPS API section.

The AWS CDK construct repo was generated with Projen as awscdk-construct

Thanks

ALPS API

The ALPS API converter is on GitHub on: https://github.com/mamund/alps-unified

Very useful to understand the idea of ALPS API is this video on YouTube: https://www.youtube.com/watch?v=oG6-r3UdenE

Sample

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
app = cdk.App()

stack = cdk.Stack(app, "my-demo-stack", env=env)

AlpsSpecRestApi(stack, "AlpsSpecRestApi",
    alps_spec_file="src/todo-alps.yaml"
)

CDK stack commands

Diff

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
npxcdk --applib / integ.default.js --profile < profile > diff

Deploy

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
npxcdk --applib / integ.default.js --profile < profile > deploy

Destroy

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
npxcdk --applib / integ.default.js --profile < profile > destroy

Limitations / Issues / TODOS

  • (AWS) Authorizer and Validator are not supported yet
  • only alps YAML files are supported. alps JSON files will be added
  • only Lambda integrations are supported and the endpoints are per default mapped to lambdas with the same name as the operationId.

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

cdk-alps-spec-rest-api-0.1.4.tar.gz (651.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdk_alps_spec_rest_api-0.1.4-py3-none-any.whl (650.0 kB view details)

Uploaded Python 3

File details

Details for the file cdk-alps-spec-rest-api-0.1.4.tar.gz.

File metadata

  • Download URL: cdk-alps-spec-rest-api-0.1.4.tar.gz
  • Upload date:
  • Size: 651.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for cdk-alps-spec-rest-api-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cda91e58454053dde4230e45977853465d6beefd05ca85ca62f0c4b9222ad840
MD5 2234eebcf327644508a4f75dcdd97fc2
BLAKE2b-256 65b36816633bf2b07deea77de89593d28709cc13b036985c72ad4f5fe6baf308

See more details on using hashes here.

File details

Details for the file cdk_alps_spec_rest_api-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: cdk_alps_spec_rest_api-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 650.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for cdk_alps_spec_rest_api-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a8cef34ae43435c78ce4767a82f5b0fd5dad833034d19b20d99832eb2c55c4e9
MD5 0f73a7896a489fa6b4370adc2662fd16
BLAKE2b-256 1271b33a4ad3e4417c41ea4f03cbd69555135424bd300478c87a5e193477004d

See more details on using hashes here.

Supported by

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