cdk-alps-spec-rest-api-0.1.9
توضیحات
cdk-alps-spec-rest-api
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cdk-alps-spec-rest-api-0.1.9 |
| نام | cdk-alps-spec-rest-api |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Martin Mueller<damadden88@googlemail.com> |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/mmuller88/cdk-alps-spec-rest-api.git |
| آدرس اینترنتی | https://pypi.org/project/cdk-alps-spec-rest-api/ |
| مجوز | Apache-2.0 |
[](https://badge.fury.io/js/cdk-alps-spec-rest-api)
[](https://badge.fury.io/py/cdk-alps-spec-rest-api)
[](https://maven-badges.herokuapp.com/maven-central/com.github.mmuller88/cdk-alps-spec-rest-api)
[](https://www.nuget.org/packages/com.github.mmuller88.CdkAlpsSpecRestApi/)

# 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](https://github.com/projen/projen) as **awscdk-construct**
# Thanks
* To Pahud for the helpful AWS CDK Construct video: https://www.youtube.com/watch?v=cTsSXYOYQPw
* Mike Amundsen for the ALPS API idea and help
# 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
```python
# 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
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
npxcdk --applib / integ.default.js --profile < profile > diff
```
## Deploy
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
npxcdk --applib / integ.default.js --profile < profile > deploy
```
## Destroy
```python
# 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.
نیازمندی
| مقدار | نام |
|---|---|
| <2.0.0,>=1.75.0 | aws-cdk.aws-apigateway |
| <2.0.0,>=1.75.0 | aws-cdk.aws-iam |
| <2.0.0,>=1.75.0 | aws-cdk.core |
| <4.0.0,>=3.2.27 | constructs |
| <2.0.0,>=1.16.0 | jsii |
| >=0.0.3 | publication |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cdk-alps-spec-rest-api-0.1.9:
pip install cdk-alps-spec-rest-api-0.1.9.whl
نصب پکیج tar.gz cdk-alps-spec-rest-api-0.1.9:
pip install cdk-alps-spec-rest-api-0.1.9.tar.gz