swagger

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendPathsFor

func AppendPathsFor(meta *TableMetadata, paths map[string]spec.PathItem)

func ColumnSchema

func ColumnSchema(col *types.ColumnMetadata) (s *spec.Schema)

func GenSwaggerFromDBMetadata

func GenSwaggerFromDBMetadata(dbMetadata *types.DataBaseMetadata) (s *spec.Swagger)

func GetParametersFromDbMetadata

func GetParametersFromDbMetadata(meta *DataBaseMetadata) (params map[string]spec.Parameter)

func GetTagsFromDBMetadata

func GetTagsFromDBMetadata(meta *types.DataBaseMetadata) (tags []spec.Tag)

func NewCUDOperationReturnArrayMessage

func NewCUDOperationReturnArrayMessage() (s spec.Schema)

func NewCUDOperationReturnMessage

func NewCUDOperationReturnMessage() (s spec.Schema)

func NewDefinitionMessageWrap

func NewDefinitionMessageWrap(definitionName string, data spec.Schema) (sWrap *spec.Schema)

func NewField

func NewField(sName, sType string, iExample interface{}) (s spec.Schema)

func NewGetOperation

func NewGetOperation(tName string) (op *spec.Operation)

func NewOperation

func NewOperation(tName, summary, opDescribetion string, params []spec.Parameter, responseDescription string, respSchema *spec.Schema) (op *spec.Operation)

func NewParamForArrayDefinition

func NewParamForArrayDefinition(tName string) (p spec.Parameter)

func NewParamForDefinition

func NewParamForDefinition(tName string) (p spec.Parameter)

func NewPathIDParameter

func NewPathIDParameter(tMeta *TableMetadata) (p spec.Parameter)

func NewQueryArrayParameter

func NewQueryArrayParameter(paramName, paramDescription, paramType string, required bool) (p spec.Parameter)

func NewQueryParameter

func NewQueryParameter(paramName, paramDescription, paramType string, required bool) (p spec.Parameter)

func NewQueryParametersForCustomPaging

func NewQueryParametersForCustomPaging() (ps []spec.Parameter)

func NewQueryParametersForFilter

func NewQueryParametersForFilter() (ps []spec.Parameter)

func NewQueryParametersForMySQLAPI

func NewQueryParametersForMySQLAPI() (ps []spec.Parameter)

func NewQueryParametersForOutputDields

func NewQueryParametersForOutputDields() (ps []spec.Parameter)

func NewRefSchema

func NewRefSchema(refDefinationName, reftype string) (s spec.Schema)

func NewSwaggerInfo

func NewSwaggerInfo(meta *DataBaseMetadata, version string) (info *spec.Info)

func NewTag

func NewTag(t string) (tag spec.Tag)

func NewTagsForOne

func NewTagsForOne(t string) (tags []spec.Tag)

func SchemaPropsFromTbmeta

func SchemaPropsFromTbmeta(tMeta *types.TableMetadata) (tableSchema spec.SchemaProps)

func SwaggerDefinationsFromDabaseMetadata

func SwaggerDefinationsFromDabaseMetadata(dbMeta *types.DataBaseMetadata) (definations spec.Definitions)

func SwaggerPathsFromDatabaseMetadata

func SwaggerPathsFromDatabaseMetadata(meta *DataBaseMetadata) (paths map[string]spec.PathItem)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL