Getting Started
Get Bytedocs running in under 5 minutes
Get Bytedocs up and running in your project in less than 5 minutes. Choose your language below:
Quick Start by Language
Select your backend language to get started:
- Go - Gin, Echo, Fiber, Gorilla, net/http
- PHP/Laravel - Laravel framework
- Node.js - Express, Fastify, NestJS, and more
- Python - FastAPI, Flask, Django
- Rust - Axum framework
Universal Quick Start
Regardless of your language, the Bytedocs integration follows the same pattern:
1. Install
2. Add One Line
3. Run & Visit
Start your application and navigate to:
🎉 That's it! Your API documentation is now live.
What You Get
After setup, you automatically get:
Full Documentation
- All routes detected
- Request/response schemas
- Parameters and validation rules
- Example values
Interactive Testing
- Test endpoints directly
- Customize requests
- See real responses
- Export as cURL
OpenAPI Export
/docs/openapi.json/docs/openapi.yaml- OpenAPI 3.0.3 compliant
Modern UI
- Beautiful, responsive design
- Dark/light mode
- Mobile-friendly
- Fast and intuitive
Next Steps
Now that you have basic documentation running:
- Configure - Customize title, URLs, auth
- Enable AI - Add intelligent API assistant
- Add Scenarios - Create reusable test flows
- Setup Auth - Protect your docs
- Performance Test - Run K6 tests (Laravel)
Troubleshooting
Documentation Not Showing
If you don't see any routes:
- Check the docs path: Default is
/docs, ensure no conflicts - Auto-detect enabled: Make sure
auto_detect: truein config - Routes registered: Ensure routes are registered before Bytedocs setup
- Framework support: Verify your framework version is supported
Routes Missing
If some routes don't appear:
- Excluded paths: Check if paths are in exclude list
- AST parsing: Ensure handler files are in the same module
- Complex routing: Manual registration may be needed for dynamic routes
Need Help?
- Check the Troubleshooting Guide
- Visit our GitHub Issues
- Join our Discord Community
Example Projects
See complete working examples: