Skip to main content

Module spec

Module spec 

Source
Expand description

OpenAPI spec parser — extract endpoints from JSON/YAML specs.

Parses OpenAPI 3.x specs into a flat list of Endpoints. Each endpoint = one HTTP method + path + parameters + description.

Structs§

Endpoint
A single API endpoint extracted from an OpenAPI spec.
Param
A single parameter for an endpoint.

Enums§

ParamLocation

Functions§

filter_endpoints
Filter endpoints by include/exclude patterns. Patterns are method:path (e.g. get:/repos/{owner}/{repo}).
parse_spec
Parse an OpenAPI spec (as JSON Value) into a list of endpoints.