openapi3html

package
v1.18.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SpectrumUIPage

func SpectrumUIPage(data PageParams) string

func StreamSpectrumUIPage

func StreamSpectrumUIPage(qw422016 *qt422016.Writer, data PageParams)

func WriteSpectrumUIPage

func WriteSpectrumUIPage(qq422016 qtio422016.Writer, data PageParams)

Types

type PageParams

type PageParams struct {
	PageTitle                string
	PageLink                 string
	TableDomID               string
	Spec                     *openapi3.Spec
	ColumnSet                *tabulator.ColumnSet
	OpsFilterFunc            func(path, method string, op *oas3.Operation) bool
	OpsAdditionalFormatFuncs *openapi3.OperationMoreStringFuncMap
	TableJSON                []byte
}

func (*PageParams) AddOperationsTable

func (pp *PageParams) AddOperationsTable(tbl *table.Table) error

func (*PageParams) AddSpec

func (pp *PageParams) AddSpec(spec *openapi3.Spec) error

func (*PageParams) PageLinkHTML

func (pp *PageParams) PageLinkHTML() string

func (*PageParams) TableJSONBytesOrEmpty

func (pp *PageParams) TableJSONBytesOrEmpty() []byte

func (*PageParams) TabulatorColumnsJSONBytesOrEmpty

func (pp *PageParams) TabulatorColumnsJSONBytesOrEmpty() []byte

func (*PageParams) WriteFile

func (pp *PageParams) WriteFile(filename string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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