Add SwaggerUI to your AWS Apigateway RestApi
Project description
CDK Apigateway SwaggerUI
Add SwaggerUI to your AWS Apigateway RestApi
Install
TypeScript
npm install @pepperize/cdk-apigateway-swagger-ui
or
yarn add @pepperize/cdk-apigateway-swagger-ui
Python
pip install pepperize.cdk-apigateway-swagger-ui
C# / .Net
dotnet add package Pepperize.CDK.ApigatewaySwaggerUi
Java
<dependency>
<groupId>com.pepperize</groupId>
<artifactId>cdk-apigateway-swagger-ui</artifactId>
<version>${cdkApigatewaySwaggerUi.version}</version>
</dependency>
Usage
import { Stack } from "aws-cdk-lib";
import * as apigateway from "aws-cdk-lib/aws-apigateway";
import { SwaggerUi } from "@pepperize/cdk-apigateway-swagger-ui";
const stack = new Stack();
const restApi = new apigateway.RestApi();
new SwaggerUi(stack, "SwaggerUI", { resource: restApi.root });
- Open your SwaggerUI:
https://<rest api id>.execute-api.<aws region>.amazonaws.com/<stage>/api-docs/swagger-ui.html
- View your API docs:
https://<rest api id>.execute-api.<aws region>.amazonaws.com/<stage>/api-docs.json
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pepperize.cdk-apigateway-swagger-ui-0.0.402.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a735b793b42674ed80be01fca1ca7b0a47080161e9fa5833e84d1726aa9e29b |
|
MD5 | 40209bc9f8108ec3d2ddb71d3d86a521 |
|
BLAKE2b-256 | 2285ad4c94d397d59d5bbde79ff379b27d4b20d9de91b9ce06603029818c93ff |
Close
Hashes for pepperize.cdk_apigateway_swagger_ui-0.0.402-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac412364b70abd023d77ce7ebb25adfab2bf3809689506e0ea2046f56e62960f |
|
MD5 | 7eed77de3297160c08b9021d035d3043 |
|
BLAKE2b-256 | 8713622f559e4504b880024524d59b1befd87fc9d32e30a8cc422ddd5df0124b |