Skip to main content

Module api_surface

Module api_surface 

Source
Expand description

API surface detection: endpoint definitions and HTTP client calls.

Post-processing pass on extracted symbols to detect REST/HTTP endpoints and client calls for cross-service linking.

Structs§

ApiSurfaceResult
Result of API surface detection.
DetectedClientCall
A detected HTTP client call.
DetectedEndpoint
A detected API endpoint.
DetectedEventCall
A detected event channel interaction (publish or subscribe).

Functions§

detect_client_calls
Detect HTTP client calls from extracted references.
detect_endpoints
Detect API endpoints from extracted symbols.
detect_endpoints_from_references
Detect API endpoints from call references (Go, Express.js, etc.).
detect_event_calls
Detect event channel interactions from call references and symbol annotations.
match_endpoint
Match a client call URL against registered endpoints.
match_event_channels
Match event producers to consumers on the same channel and protocol. Returns pairs of (producer_caller, consumer_caller, channel, protocol, confidence).
normalize_path_pattern
Normalize a URL path pattern: