feat: Add documentation generation and serve functionality

- Implement documentation generation
- Replace chi router with gin for documentation server
- Fix issues with docs command execution
This commit is contained in:
2025-11-04 19:15:28 +03:00
parent 3fc545f067
commit 5a8b53b49d
10 changed files with 206 additions and 100 deletions

View File

@@ -2,7 +2,8 @@ package controller
import (
"github.com/gin-gonic/gin"
"github.com/go-andiamo/chioas"
"github.com/swaggest/openapi-go"
"github.com/swaggest/openapi-go/openapi3"
)
// SecuredController - means, controller has middlewares
@@ -12,7 +13,7 @@ type SecuredController interface {
}
type DocumentateController interface {
Documentate() (*chioas.Paths, *chioas.Components)
Documentate(r *openapi3.Reflector) openapi.OperationContext
}
type Controller interface {