Skip to main content

detect_endpoints

Function detect_endpoints 

Source
pub fn detect_endpoints(
    symbols: &[Symbol],
    namespace: &str,
) -> Vec<DetectedEndpoint>
Expand description

Detect API endpoints from extracted symbols.

Scans symbol attributes/decorators for framework-specific route patterns:

  • Python: @app.route, @router.get, @api_view, @GetMapping (for Django views, Flask, FastAPI)
  • TypeScript: @Get, @Post (NestJS), app.get (Express) — detected from call references
  • Java: @GetMapping, @PostMapping, @RequestMapping
  • Go: detected via call patterns (http.HandleFunc, router.GET, etc.)