API Documentation
Nezha Dashboard provides a comprehensive API documentation that allows developers to create custom applications, such as custom frontends or bots, leveraging its APIs.
Instructions
Fetching and Generating Documentation
Clone the Repository
Clone the official repository:bashgit clone https://github.com/nezhahq/nezha.git cd nezha
Run the Bootstrap Script
Execute the following script to generate files required for API documentation:bash./script/bootstrap.sh
Compile the Code
If the compilation process reports missingadmin-dist
oruser-dist
directories, create empty directories as follows:bashmkdir -p dashboard/admin-dist dashboard/user-dist
Enable Debug Mode
Update the configuration to enable Debug mode and rundashboard
The system logs will automatically display the URL for accessing the API documentation.