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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user