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.742.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dbbc137456cd01fc115ed213f2477a0b6ba6a28a147dc5f707257927a59412c |
|
MD5 | e4d001fa0f1803a3c45a6dfb28b6749e |
|
BLAKE2b-256 | 6ccd9709a402bef7f4246e2ce4bd6084f049ff1661fa80e56f937096a922e545 |
Close
Hashes for pepperize.cdk_apigateway_swagger_ui-0.0.742-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d9e893abf27027668ac0e5aca34193011e5dc4a796b3a56b91579fecf5c0c03 |
|
MD5 | 75f7da3ede96eb332ae74b88259d2957 |
|
BLAKE2b-256 | 3d14f16099d7e4c668ff6deb2c68ce8be5a43b54d13ace4e10ab3420024c583a |