EDIT: 2024-04-22
You can now use docker compose like this with openapi.json
next to your compose file and containing the spec:
version: 3
services:
swagger-ui:
image: swaggerapi/swagger-ui
container_name: swagger-ui
ports:
- "8080:8080"
environment:
SWAGGER_JSON: /openapi/openapi.json
volumes:
- ./openapi.json:/openapi/openapi.json
<>斯特凡>
You can also download swagger ui from: https://github.com/swagger-api/swagger-ui,
take the dist folder, modify index.html:
change the constructor
const ui = SwaggerUIBundle({
url: ...,
页: 1
const ui = SwaggerUIBundle({
spec: YOUR_JSON,
如今,左侧有你们所需要的一切,可以按需要加以分配。