openapi

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "cnfuzz"

Variables

This section is empty.

Functions

func GetCommonOpenApiLocations

func GetCommonOpenApiLocations() []string

GetCommonOpenApiLocations returns a list of locations commonly used for OpenAPI specifications in web API's

func GetRemoteOpenApiDoc

func GetRemoteOpenApiDoc(l logger.Logger, url *url.URL) ([]byte, error)

GetRemoteOpenApiDoc get OpenApi doc from a URL Use this method if the full URL to the OpenApi doc is known

func TryGetOpenApiDoc

func TryGetOpenApiDoc(l logger.Logger, ip string, ports []int32, locations []string) (webApiDescription *discovery.WebApiDescription, err error)

TryGetOpenApiDoc try getting the OpenApi doc from a host without knowing the exact OpenApi doc location

func UnMarshalOpenApiDoc

func UnMarshalOpenApiDoc(l logger.Logger, docFile []byte, uri *url.URL) (*discovery.WebApiDescription, error)

UnMarshalOpenApiDoc unmarshal OpenAPI doc represented as a byte array returns a WebApiDescription object that represents the OpenAPI document

Types

This section is empty.

Jump to

Keyboard shortcuts

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