swagger

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

OpenAPI Specification

The World Standard for RESTful APIs

The OpenAPI Specification was donated to the Linux Foundation under the OpenAPI Initiative in 2015. The specification creates a RESTful interface for easily developing and consuming an API by effectively mapping all the resources and operations associated with it.

Version 2.0: swagger 2.0

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

https://swagger.io/specification/v2/

Version 3.0: openapi 3.0

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 RFC2119 RFC8174 when, and only when, they appear in all capitals, as shown here.

https://swagger.io/specification/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromData

func LoadFromData(spec []byte) (*openapi3.Swagger, error)

func MarshalJSON

func MarshalJSON(v interface{}) ([]byte, error)

序列化为 json 格式

func MarshalYAML

func MarshalYAML(v interface{}) ([]byte, error)

序列化为 yaml 格式

Types

This section is empty.

Directories

Path Synopsis
ddl

Jump to

Keyboard shortcuts

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