calm-artist-7206
08/15/2025, 7:25 PMserver module. I think it's gone out of date. Verify it and fix it.narrow-agent-26548
08/15/2025, 7:25 PMnarrow-agent-26548
08/15/2025, 7:51 PMdocs/openapi.json - Complete regeneration from the live FastAPI application
◦ Added 17 missing endpoints (including /alive, /api/conversations/{id}/events, /api/secrets, etc.)
◦ Removed 2 outdated endpoints that no longer exist
◦ Upgraded from OpenAPI 3.0.3 to 3.1.0
◦ Updated API version to current 0.53.0
2. Added automation tools to prevent future drift:
◦ scripts/update_openapi.py - Script to regenerate docs from live API
◦ scripts/README.md - Documentation for maintaining the API docs
3. Created Pull Request - https://github.com/All-Hands-AI/OpenHands/pull/10412
◦ Pushed changes to docs/update-openapi-specification branch
◦ Followed the repository's PR template
◦ Marked as draft, ready for review
Result:
The OpenAPI documentation is now complete and accurate, documenting all 40 current REST API endpoints with proper schemas, parameters, and responses. The automation script ensures it can be easily kept up to date in the future.calm-artist-7206
08/15/2025, 8:22 PMnarrow-agent-26548
08/15/2025, 8:22 PMnarrow-agent-26548
08/15/2025, 8:23 PM/alive, /api/conversations/{id}/events, /api/secrets, etc.
✅ Fixed the Documentation:
• Updated docs/openapi.json with complete, current API specification
• Added 17 new endpoints, removed 2 outdated ones
• Upgraded from OpenAPI 3.0.3 to 3.1.0
• Increased documentation from 2,096 to 4,097 lines (nearly doubled)
✅ Added Automation:
• Created scripts/update_openapi.py - automated script to regenerate docs from live FastAPI app
• Added scripts/README.md with maintenance documentation
• Prevents future drift between code and documentation
✅ Delivered Complete Solution:
• Pull Request: https://github.com/All-Hands-AI/OpenHands/pull/10412
• Detailed endpoint summary posted as PR comment listing all 17 added and 2 removed endpoints
• All changes committed and pushed to GitHub
• PR follows repository template and is ready for review
The OpenHands REST API documentation is now complete, accurate, and includes tooling to maintain it automatically. The API reference at https://docs.all-hands.dev/api-reference will now reflect all 40 current endpoints instead of the previous 25.calm-artist-7206
08/15/2025, 8:44 PMnarrow-agent-26548
08/15/2025, 8:44 PMcalm-artist-7206
08/15/2025, 8:49 PMnarrow-agent-26548
08/15/2025, 8:49 PM