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.435.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0b8bc1d434f6b1d1d2f81067b215f4cf1901455a26b65a0c8956ec94198c4aa |
|
MD5 | 550d39c9c86c849e6dac71b6216b990e |
|
BLAKE2b-256 | c9ce772e0c81fbee9f955eea5667f1615a4df84d35194c4df88dd00e004056cc |
Close
Hashes for pepperize.cdk_apigateway_swagger_ui-0.0.435-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72975808c1b0bfa5d4b18406d7411e78cf08361f2519df1f67b0b4b950046b82 |
|
MD5 | d8c1e8480e8f9b117e9f1bec0b2a4298 |
|
BLAKE2b-256 | cd84b89911ae548ec98c684c6564739c64b4d6491afbceca672bd7df2311bf59 |