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.217.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73f5b90f0b61a8562d31258287cc56ee1df36a65f623869130881c422103dcf9 |
|
MD5 | 28a9d0271414e4f00962234637e731bf |
|
BLAKE2b-256 | c3c415b13587b56021fb179b903a0e028b12368cde1ad89d990bfcaae9019570 |
Close
Hashes for pepperize.cdk_apigateway_swagger_ui-0.0.217-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96c589bfdb5f9715388e0201001f83c3ca450b6df06b74c0bb5668a6bfa51572 |
|
MD5 | 9fea28efb9cc3c802a08d6bdee5ac5cf |
|
BLAKE2b-256 | 5451c1ce6188ca0bc3f5ffcdd6d8962a87958d26b38476719e154c6d568d4465 |