Find API Routes
repolens_find_api_routesFind API route definitions in backend code for Express, Fastify, NestJS, and Laravel. Filter by HTTP method, path, framework, or scan specific directories to locate endpoints.
Instructions
Find API route/endpoint definitions in backend code across repositories.
Searches for HTTP route definitions in Express, Fastify, NestJS, and Laravel codebases.
Supported Frameworks: Express, Fastify, NestJS, Laravel (PHP)
Args:
method (string, optional): Filter by HTTP method: "GET", "POST", "PUT", "DELETE", "PATCH"
pathPattern (string, optional): Filter routes containing this path segment (e.g., "/users", "/api/v1")
paths (string, optional): Ad-hoc directory paths to search (comma-separated). No registration needed.
repoFilter (string, optional): Filter registered repositories by alias (comma-separated)
framework (string, optional): Filter by framework: "express", "fastify", "nestjs", "laravel"
maxResults (number, optional): Maximum results to return (default: 100)
response_format (string, optional): Output format - "markdown" (default) or "json"
Examples:
Search a directory directly: paths="/home/user/projects/api"
Find all user endpoints: pathPattern="/users"
Find POST routes in backend: repoFilter="backend-api", method="POST"
Find NestJS controllers: framework="nestjs"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | Ad-hoc directory paths to search (comma-separated). No registration needed. | |
| method | No | HTTP method (GET, POST, PUT, DELETE, PATCH) | |
| framework | No | Filter by framework (express, fastify, nestjs, laravel) | |
| maxResults | No | Maximum results (default: 100, max: 500) | |
| repoFilter | No | Filter registered repositories by alias (comma-separated) | |
| pathPattern | No | Filter by path pattern (e.g., "/users", "/api") | |
| response_format | No | Output format: "markdown" (default) or "json" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of results returned | |
| results | Yes | Array of API route results |