apiblueprint

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: GPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildApiBlueprint

func BuildApiBlueprint(config *resource.CmsConfig, cruds map[string]*resource.DbResource) string

func CreateColumnLine

func CreateColumnLine(colInfo api2go.ColumnInfo) map[string]interface{}

func CreateDataInResponse added in v0.6.8

func CreateDataInResponse(tableInfo resource.TableInfo) map[string]interface{}

func CreateDeleteMethod added in v0.6.8

func CreateDeleteMethod(tableInfo resource.TableInfo) map[string]interface{}

func CreateDeleteRelationMethod added in v0.6.8

func CreateDeleteRelationMethod(tableInfo resource.TableInfo) map[string]interface{}

func CreateGetAllMethod added in v0.6.8

func CreateGetAllMethod(tableInfo resource.TableInfo, dataInResponse map[string]interface{}) map[string]interface{}

func CreateGetMethod added in v0.6.8

func CreateGetMethod(tableInfo resource.TableInfo, dataInResponse map[string]interface{}) map[string]interface{}

func CreatePatchMethod added in v0.6.8

func CreatePatchMethod(tableInfo resource.TableInfo) map[string]interface{}

func CreatePostMethod added in v0.6.8

func CreatePostMethod(tableInfo resource.TableInfo, dataInResponse map[string]interface{}) map[string]interface{}

func InfoError added in v0.6.8

func InfoError(err error, args ...interface{}) bool

func ProperCase added in v0.6.8

func ProperCase(str string) string

Types

type BlueprintWriter

type BlueprintWriter struct {
	// contains filtered or unexported fields
}

func NewBluePrintWriter

func NewBluePrintWriter() BlueprintWriter

func (*BlueprintWriter) Markdown

func (x *BlueprintWriter) Markdown() string

func (*BlueprintWriter) WriteString

func (x *BlueprintWriter) WriteString(s string)

func (*BlueprintWriter) WriteStringf

func (x *BlueprintWriter) WriteStringf(s ...interface{})

Jump to

Keyboard shortcuts

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