Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RawOpenAPISpec ¶
func RawOpenAPISpec() []byte
RawOpenAPISpec returns the embedded OpenAPI document bytes.
func RegisterScalarUI ¶
RegisterScalarUI registers the Scalar UI <address>:<api-port>/scalar.
Types ¶
type OpenAPIEndpoint ¶
type OpenAPIEndpoint struct {
Path string
Method string
OperationID string
Summary string
Tags []string
Parameters []OpenAPIParameter
ResponseSchema string
}
OpenAPIEndpoint contains the subset of metadata required by downstream consumers.
func GetOpenAPIEndpoints ¶
func GetOpenAPIEndpoints() ([]OpenAPIEndpoint, error)
GetOpenAPIEndpoints returns all GET endpoints defined in the OpenAPI spec.
Click to show internal directories.
Click to hide internal directories.