Skip to main content

Add SwaggerUI to your AWS Apigateway RestApi

Project description

PRs Welcome GitHub npm (scoped) PyPI Nuget Sonatype Nexus (Releases) GitHub Workflow Status (branch) GitHub release (latest SemVer) Gitpod ready-to-code

CDK Apigateway SwaggerUI

Add SwaggerUI to your AWS Apigateway RestApi

SwaggerUI Example

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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file pepperize_cdk_apigateway_swagger_ui-0.0.1274.tar.gz.

File metadata

File hashes

Hashes for pepperize_cdk_apigateway_swagger_ui-0.0.1274.tar.gz
Algorithm Hash digest
SHA256 178f554719874418df49ff244e96b359d511b916fd7b3572556b37bf726e8fa0
MD5 c96886d24b62cef0abc8101fab1bcd19
BLAKE2b-256 410a3f54f20fe66e69fc920140fa060061d1ac714ecdf686c1fe5d4e8dd1d21a

See more details on using hashes here.

File details

Details for the file pepperize_cdk_apigateway_swagger_ui-0.0.1274-py3-none-any.whl.

File metadata

File hashes

Hashes for pepperize_cdk_apigateway_swagger_ui-0.0.1274-py3-none-any.whl
Algorithm Hash digest
SHA256 de8234b97e64ad7a4884a50bcc4b5c0d4c5d7818f2e1433671c197ca2d62890c
MD5 3a547230333763485be7603adceec1a2
BLAKE2b-256 acc714421ae0591e486ad4aed74c00800bddf236ef19ababd7e59848f4e209e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page