analysis

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRESTApiStats

func GetRESTApiStats(document *loads.Document, filter string) (map[string]map[string]*RequestStats, error)

GetRESTApiStats initializes a stats structure based on swagger definition with total params number for each available endpoint

Types

type RequestStats

type RequestStats struct {
	Body         map[string]int
	Query        map[string]int
	ParamsHit    int
	ParamsNum    int
	MethodCalled bool
	Path         string
	Method       string
}

RequestStats represents a basic statistics structure which is used to calculate REST API coverage

Jump to

Keyboard shortcuts

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