apiblueprint

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: GPL-3.0 Imports: 7 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 CreateActionPostMethod added in v0.6.8

func CreateActionPostMethod(action resource.Action) map[string]interface{}

func CreateActionResource added in v0.6.8

func CreateActionResource(action resource.Action) map[string]interface{}

func CreateActionResponse added in v0.6.8

func CreateActionResponse(action resource.Action) map[string]interface{}

func CreateActionResponseTypeAttributes added in v0.6.8

func CreateActionResponseTypeAttributes(outcome resource.Outcome) map[string]interface{}

func CreateByIdResource added in v0.6.8

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

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 CreateRelationsByIdResource added in v0.6.8

func CreateRelationsByIdResource(tableInfo resource.TableInfo) 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

func TitleCase added in v0.6.8

func TitleCase(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