Documentation
¶
Index ¶
- func ContainsValueInSlice(slice []string, value string) bool
- func MakeOpenApi(name string, origin []string, basePath, version string, menus ...kitchen.IMenu) ([]byte, error)
- func MenuWithSwaggerOption(menu kitchen.IMenu, option SwaggerOption) kitchen.IMenu
- func RegisterSwaggerType(t reflect.Type, name string, urlParams [][2]string, body any)
- type IOpenApiType
- type ISwaggerRoute
- type SwaggerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsValueInSlice ¶
func MakeOpenApi ¶
func MakeOpenApi(name string, origin []string, basePath, version string, menus ...kitchen.IMenu) ([]byte, error)
MakeOpenApi generate open api json from kitchen menus
func MenuWithSwaggerOption ¶
func MenuWithSwaggerOption(menu kitchen.IMenu, option SwaggerOption) kitchen.IMenu
Types ¶
type IOpenApiType ¶
type ISwaggerRoute ¶
type ISwaggerRoute interface {
ToSwaggerRoute(map[string]any, SwaggerOption) map[string]any
}
Click to show internal directories.
Click to hide internal directories.