docs

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package classification Kubescape Gateway

The Kubescape Gateway listens and routes messages to its intended recipients.

Schemes: https, http BasePath: / Version: 1.0.0

Consumes: - application/json Produces: - text/plain

Security: - basic

swagger:meta

Package docs documents the HTTP API endpoints. The documentation is then used to generate an OpenAPI spec.

Index

Constants

View Source
const (
	OpenAPIDocsEndpoint        = "docs"
	OpenAPIRapiEndpoint        = "rapi"
	OpenAPISwaggerUIEndpoint   = "swaggerui"
	OpenAPIswaggerJSONEndpoint = "swagger.yaml"
	OpenAPIV2Prefix            = "/openapi/v2/"
)

Variables

This section is empty.

Functions

func NewOpenAPIUIHandler

func NewOpenAPIUIHandler() http.Handler

NewOpenAPIUIHandler returns a handler that serves OpenAPI specs via UI

func ServeOpenAPISpec

func ServeOpenAPISpec(w http.ResponseWriter, r *http.Request)

ServeOpenAPISpec returns the OpenAPI specification file

Types

This section is empty.

Jump to

Keyboard shortcuts

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