Documentation
¶
Overview ¶
Package detect identifies whether a URL/response exposes a Swagger/OpenAPI definition and, if so, loads it into a normalized spec.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct {
URL string `json:"url"`
IsSpec bool `json:"is_spec"` // parsed as a real definition
IsUI bool `json:"is_ui"` // swagger-ui/redoc HTML page
Marker string `json:"marker,omitempty"` // matched content marker
Kind spec.Kind `json:"kind,omitempty"` // version family
Version string `json:"version,omitempty"` // raw version
Title string `json:"title,omitempty"` // API title
SpecURLs []string `json:"spec_urls,omitempty"` // definition URLs extracted from a UI page
Spec *spec.Spec `json:"-"`
Status int `json:"status"`
}
Result is the outcome of fingerprinting a single URL.
Click to show internal directories.
Click to hide internal directories.