This patch includes and uses the oapi-codegen tool to auto-generate go boilerplate code, based on the OpenAPI spec.
27 lines
740 B
Go
27 lines
740 B
Go
package api
|
|
|
|
//go:generate go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen --config=api.cfg.yaml ../../docs/openapi.yaml
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/labstack/echo/v4"
|
|
)
|
|
|
|
type ServerImpl struct{}
|
|
|
|
func (*ServerImpl) GetBanks(ctx echo.Context) error {
|
|
return echo.NewHTTPError(http.StatusNotImplemented)
|
|
}
|
|
|
|
func (*ServerImpl) GetBanksById(ctx echo.Context, bankId int64) error {
|
|
return echo.NewHTTPError(http.StatusNotImplemented)
|
|
}
|
|
|
|
func (*ServerImpl) GetTransactions(ctx echo.Context, params GetTransactionsParams) error {
|
|
return echo.NewHTTPError(http.StatusNotImplemented)
|
|
}
|
|
|
|
func (*ServerImpl) GetTransactionsById(ctx echo.Context, transactionId int64) error {
|
|
return echo.NewHTTPError(http.StatusNotImplemented)
|
|
}
|