Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

English | 繁體中文

Self-Hosted OpenAPI

OpenAPI specification and local preview guide for the DottedSign Self-Host deployment.

Specification File

Main OpenAPI file:

openapi/self_hosted.yml

Paths and components are located in openapi/paths/ and openapi/components/ respectively.

Local Preview

Two preview options are available — choose based on your needs:

  • Redoc
  • Swagger UI (watcher)

Redoc

npx redoc-cli serve openapi/self_hosted.yml

Default address:

http://localhost:8080

Swagger UI (watcher)

npx -y swagger-ui-watcher openapi/self_hosted.yml --port 8080

Default address:

http://127.0.0.1:8080

Any file changes under openapi/ will automatically refresh the page. If the document does not conform to the OpenAPI specification, an Errors block will appear at the top of the page indicating what needs to be fixed.

Export Static HTML

Bundle into a single HTML file:

npx redoc-cli bundle openapi/self_hosted.yml -o redoc-static.html

Output file:

redoc-static.html