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.474.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9deaa65199bd3605cd16def3dc4f125096fc778b9cc1a6ed6f71550fce1a9cd3 |
|
MD5 | 86c90b42a700bc444dbb356743482b2e |
|
BLAKE2b-256 | cdd906b7d3ec4c5adfa15a1fd71b7b24400fe03646fb4a8fec25415965c28989 |
Close
Hashes for pepperize.cdk_apigateway_swagger_ui-0.0.474-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efa6a46116ee9cc437983f752a628ce3b2bc73d1cb5fe1827948fb15e19e2876 |
|
MD5 | 30493974464457727c7c105626e9a7d7 |
|
BLAKE2b-256 | d5c945748db66bee1e3f49f8072497c40d3b774a2c4176d4b5576d83f990b0b8 |