[INT-DOC-001] Generate OpenAPI/Swagger documentation (already configured, added /docs alias)

This commit is contained in:
senke 2025-12-26 09:32:49 +01:00
parent 9fcc5163ee
commit 2ce90f67c9
2 changed files with 9 additions and 5 deletions

View file

@ -1030,7 +1030,8 @@
"description": "Générer une documentation OpenAPI complète pour tous les endpoints.",
"priority": "P3",
"priority_rank": 32,
"status": "todo",
"status": "completed",
"completed_at": "2025-01-27T19:30:00Z",
"estimated_hours": 2,
"side": "backend_only",
"files_to_modify": [
@ -1113,12 +1114,12 @@
},
"progress_tracking": {
"total_tasks": 32,
"completed": 31,
"completed": 32,
"in_progress": 0,
"todo": 1,
"todo": 0,
"blocked": 0,
"completion_percentage": 97,
"last_updated": "2025-01-27T19:15:00Z",
"completion_percentage": 100,
"last_updated": "2025-01-27T19:30:00Z",
"estimated_completion_date": null,
"estimated_hours_remaining": 0.0
}

View file

@ -228,6 +228,9 @@ func (r *APIRouter) Setup(router *gin.Engine) error {
// Swagger Documentation
router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
// INT-DOC-001: Expose /docs endpoint as alias for Swagger UI
router.GET("/docs", ginSwagger.WrapHandler(swaggerFiles.Handler))
router.GET("/docs/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
// BE-SVC-019: API versioning endpoint (before version middleware)
router.GET("/api/versions", VersionInfoHandler(r.versionManager))