Gathering detailed insights and metrics for openapi-ui-dist
Gathering detailed insights and metrics for openapi-ui-dist
OpenAPI/Swagger UI document, quickly generate mock params and call api, also simplified postman tool. 基于 OpenAPI/Swagger 规范的接口文档,快速模拟请求参数并调用接口,也是简化版 postman 工具,欢迎提功能请求、bug
npm install openapi-ui-dist
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (98.47%)
JavaScript (0.59%)
HTML (0.36%)
Dockerfile (0.32%)
Makefile (0.25%)
Total Downloads
1,074
Last Day
1
Last Week
9
Last Month
51
Last Year
1,074
672 Stars
726 Commits
62 Forks
3 Watching
7 Branches
4 Contributors
Latest Version
2.3.3
Package Id
openapi-ui-dist@2.3.3
Unpacked Size
12.31 MB
Size
3.40 MB
File Count
13
NPM Version
10.7.0
Node Version
18.20.4
Publised On
13 Oct 2024
Cumulative downloads
Total Downloads
Last day
-50%
1
Compared to previous day
Last week
-62.5%
9
Compared to previous week
Last month
-19%
51
Compared to previous month
Last year
0%
1,074
Compared to previous year
25
33
OpenAPI/Swagger UI document, quickly generate mock params and call api, also simplified postman tool
English | 简体中文
spec-url
is full path
1<!doctype html> 2<html lang="en"> 3 <head> 4 <meta charset="UTF-8" /> 5 <title>openAPI UI</title> 6 </head> 7 <body> 8 <div id="openapi-ui-container" spec-url="https://petstore3.swagger.io/api/v3/openapi.json" theme="light"></div> 9 <script src="https://cdn.jsdelivr.net/npm/openapi-ui-dist@latest/lib/openapi-ui.umd.js"></script> 10 </body> 11</html>
spec-url
is path
1<!doctype html> 2<html lang="en"> 3 <head> 4 <meta charset="UTF-8" /> 5 <title>openAPI UI</title> 6 </head> 7 <body> 8 <div id="openapi-ui-container" spec-url="/openapi.json" theme="dark"></div> 9 <script src="https://cdn.jsdelivr.net/npm/openapi-ui-dist@latest/lib/openapi-ui.umd.js"></script> 10 </body> 11</html>
1import { useEffect } from "react"; 2 3const SetUpOpenApiUI = () => { 4 useEffect(() => { 5 import("openapi-ui-dist") 6 }, []); 7 8 return ( 9 <div id="openapi-ui-container" spec-url="https://petstore3.swagger.io/api/v3/openapi.json" theme="light" /> 10 ); 11} 12 13export const openapiRoutes = { 14 path: "/openapi", 15 id: "openapi", 16 element: <SetUpOpenApiUI />, 17};
1# node version >= 18 2# download node_modules 3pnpm install 4# or make install 5 6# start 7npm run dev 8# or make dev
1# build 2npm run build 3# or make build 4 5# make docker image 6make docker-build 7 8# run docker image 9make docker-run 10 11# make docker image and run docker image 12make docker-build-run
1# pull Docker image 2docker pull ghcr.io/rookie-luochao/openapi-ui:latest 3 4# start container, nginx reverse proxy custom port, for example: docker run -d -p 8081:80 ghcr.io/rookie-luochao/openapi-ui:latest 5docker run -d -p 80:80 -e APP_CONFIG=env=zh,appNameZH=简洁美观的接口文档 ghcr.io/rookie-luochao/openapi-ui:latest
node >= 18
No vulnerabilities found.
No security vulnerabilities found.