A simple, web-based tool to generate beautiful HTML documentation from OpenAPI/Swagger specifications.
Visit the live application: https://paragsarin.github.io/openapidocumentation/
- Multiple Input Options: Upload JSON files or download from URLs
- OpenAPI Support: Compatible with both OpenAPI v2 (Swagger) and v3 specifications
- Clean Documentation: Generates professional, readable API documentation
- Interactive Navigation: Quick navigation between API endpoints and data models
- Export Functionality: Export generated documentation as standalone HTML
- Sample Files: Includes sample OpenAPI specifications for testing
- Download one of the sample files or use your own OpenAPI specification
- Click "Choose File" and select your JSON file
- Click "Generate Documentation"
- View your formatted API documentation
- Enter the URL of your OpenAPI specification
- Click "Download & Generate"
- The tool will fetch and generate documentation automatically
This repository includes sample OpenAPI specifications:
- sample-openapi-v2.json - OpenAPI v2 (Swagger) example with user management API
- sample-openapi-v3.json - OpenAPI v3 example with product management API
- Frontend: Pure HTML, CSS, and JavaScript
- No Backend Required: Runs entirely in the browser
- CORS Handling: Includes fallback for CORS-restricted URLs
- Responsive Design: Works on desktop and mobile devices
- API endpoint documentation with HTTP methods
- Request/response schemas
- Parameter descriptions
- Data model definitions with clickable references
- Authentication schemes (OpenAPI v3)
- Server configurations
- Tags and grouping
- Clone this repository
- Open
generate-api-docs.htmlin your web browser - No build process or dependencies required!
The tool supports standard OpenAPI/Swagger JSON format:
{
"openapi": "3.0.3",
"info": {
"title": "Your API",
"version": "1.0.0"
},
"paths": {
// Your API endpoints
}
}Feel free to submit issues, feature requests, or pull requests to improve this tool.
This project is open source and available under the MIT License.
If you encounter any issues or have questions, please open an issue on GitHub.
Made with β€οΈ for the API documentation community