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.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8309af70894f87bd30ae95fb0e85ca1442fbc13b5e1baefea573f291741d8c74 |
|
MD5 | d7591fb2df4ebc3a568946371a01810f |
|
BLAKE2b-256 | 9be0cf15aa7c0ffed72e501c65c451408971520f4d5259c11a382566af9c7374 |
Close
Hashes for pepperize.cdk_apigateway_swagger_ui-0.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b77d1337538c606d64854a7a99d0e886ca4d3d30f9ccefc2917c18cf96cf229a |
|
MD5 | 0e1faf2f430011e0a3f44b5bcac1b3a8 |
|
BLAKE2b-256 | 6ce78616b9fcf5eb827e6733200e293f41cfba741115ca8c2631c3ac66d8637d |